Mercurial > emacs
comparison configure @ 108882:3ff97bad1c47
Move UNEXEC definition to autoconf.
* configure.in (unxec): Do not define and substitute.
(UNEXEC_OBJ): New output variable, replaces cpp UNEXEC.
* msdos/sed1v2.inp (UNEXEC_OBJ): Use UNEXEC_OBJ instead of unexec.
* src/s/usg5-4.h (UNEXEC): Remove, move to configure.in.
* src/s/sol2-10.h (UNEXEC):
* src/s/irix6-5.h (UNEXEC):
* src/s/hpux10-20.h (UNEXEC):
* src/s/gnu-linux.h (UNEXEC):
* src/s/darwin.h (UNEXEC):
* src/s/cygwin.h (UNEXEC):
* src/s/bsd-common.h (UNEXEC):
* src/s/aix4-2.h (UNEXEC):
* src/m/alpha.h (UNEXEC): Likewise.
* src/Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Thu, 03 Jun 2010 15:16:02 -0700 |
parents | cf18062c81fd |
children | b5f73bf59a4f 68616bb3ae25 |
comparison
equal
deleted
inserted
replaced
108881:5582106cddf0 | 108882:3ff97bad1c47 |
---|---|
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 WINDOW_SUPPORT | |
599 TOOLTIP_SUPPORT | |
600 MOUSE_SUPPORT | |
601 LIB_GCC | |
602 LINKER | |
603 POST_EDIT_LDFLAGS | |
604 PRE_EDIT_LDFLAGS | |
605 LD_SWITCH_SYSTEM_TEMACS | |
606 POST_ALLOC_OBJ | |
607 PRE_ALLOC_OBJ | |
608 CYGWIN_OBJ | |
609 RALLOC_OBJ | |
610 OLDXMENU_DEPS | |
611 LIBX_OTHER | |
612 LIBXMENU | |
613 OLDXMENU | |
614 OLDXMENU_TARGET | |
615 LIBXT_OTHER | |
616 TOOLKIT_LIBW | |
617 WIDGET_OBJ | |
618 XOBJ | |
619 XMENU_OBJ | |
620 FONT_OBJ | |
621 OTHER_FILES | |
622 GNU_OBJC_CFLAGS | |
623 ns_appsrc | |
624 ns_appresdir | |
625 ns_appbindir | |
626 ns_appdir | |
627 opsysfile | |
628 machfile | |
629 X_TOOLKIT_TYPE | |
630 C_SWITCH_X_SYSTEM | |
631 C_SWITCH_X_SITE | |
632 LD_SWITCH_X_SITE | |
633 gameuser | |
634 gamedir | |
635 bitmapdir | |
636 archlibdir | |
637 etcdir | |
638 x_default_search_path | |
639 lisppath | |
640 locallisppath | |
641 lispdir | |
642 srcdir | |
643 canonical | |
644 configuration | |
645 version | |
646 KRB4LIB | |
647 DESLIB | |
648 KRB5LIB | |
649 CRYPTOLIB | |
650 COM_ERRLIB | |
651 LIBRESOLV | |
652 LIBHESIOD | |
653 TERMCAP_OBJ | |
654 LIBS_TERMCAP | |
655 GETOPTOBJS | |
656 GETOPT_H | |
657 GETLOADAVG_LIBS | |
658 KMEM_GROUP | |
659 NEED_SETGID | |
660 LIBOBJS | |
661 BLESSMAIL_TARGET | |
662 LIBS_MAIL | |
663 liblockfile | |
664 ALLOCA | |
665 LIBXSM | |
666 LIBGPM | |
667 LIBGIF | |
668 LIBTIFF | |
669 LIBPNG | |
670 LIBJPEG | |
671 LIBXPM | |
672 FREETYPE_LIBS | |
673 FREETYPE_CFLAGS | |
674 M17N_FLT_LIBS | |
675 M17N_FLT_CFLAGS | |
676 LIBOTF_LIBS | |
677 LIBOTF_CFLAGS | |
678 XFT_LIBS | |
679 XFT_CFLAGS | |
680 FONTCONFIG_LIBS | |
681 FONTCONFIG_CFLAGS | |
682 LIBXMU | |
683 LIBXTR6 | |
684 LIBSELINUX_LIBS | |
685 GCONF_LIBS | |
686 GCONF_CFLAGS | |
687 DBUS_OBJ | |
688 DBUS_LIBS | |
689 DBUS_CFLAGS | |
690 GTK_OBJ | |
691 GTK_LIBS | |
692 GTK_CFLAGS | |
693 RSVG_LIBS | |
694 RSVG_CFLAGS | |
695 VMLIMIT_OBJ | |
696 GMALLOC_OBJ | |
697 HAVE_XSERVER | |
698 LIB_STANDARD | |
699 NS_SUPPORT | |
700 NS_OBJ | |
701 TEMACS_LDFLAGS2 | |
702 LD_SWITCH_X_SITE_AUX_RPATH | |
703 LD_SWITCH_X_SITE_AUX | |
704 XMKMF | |
705 DEPFLAGS | |
706 MKDEPDIR | |
707 SET_MAKE | |
708 CFLAGS_SOUND | |
709 ALSA_LIBS | |
710 ALSA_CFLAGS | |
711 PKG_CONFIG | |
712 LIBSOUND | |
713 START_FILES | |
714 LIB_MATH | |
715 CRT_DIR | |
716 LIBS_SYSTEM | |
717 C_SWITCH_SYSTEM | |
718 UNEXEC_OBJ | |
719 C_SWITCH_MACHINE | |
720 LD_SWITCH_SYSTEM | |
721 cannot_dump | |
722 MAKEINFO | |
723 GZIP_PROG | |
724 INSTALL_INFO | |
725 RANLIB | |
726 INSTALL_DATA | |
727 INSTALL_SCRIPT | |
728 INSTALL_PROGRAM | |
729 EGREP | |
730 GREP | |
731 CPP | |
732 OBJEXT | |
733 EXEEXT | |
734 ac_ct_CC | |
735 CPPFLAGS | |
736 LDFLAGS | |
737 CFLAGS | |
738 CC | |
739 host_os | |
740 host_vendor | |
741 host_cpu | |
742 host | |
743 build_os | |
744 build_vendor | |
745 build_cpu | |
746 build | |
747 MAINT | |
748 target_alias | |
749 host_alias | |
750 build_alias | |
751 LIBS | |
752 ECHO_T | |
753 ECHO_N | |
754 ECHO_C | |
755 DEFS | |
756 mandir | |
757 localedir | |
758 libdir | |
759 psdir | |
760 pdfdir | |
761 dvidir | |
762 htmldir | |
763 infodir | |
764 docdir | |
765 oldincludedir | |
766 includedir | |
767 localstatedir | |
768 sharedstatedir | |
769 sysconfdir | |
770 datadir | |
771 datarootdir | |
772 libexecdir | |
773 sbindir | |
774 bindir | |
775 program_transform_name | |
776 prefix | |
777 exec_prefix | |
778 PACKAGE_URL | |
779 PACKAGE_BUGREPORT | |
780 PACKAGE_STRING | |
781 PACKAGE_VERSION | |
782 PACKAGE_TARNAME | |
783 PACKAGE_NAME | |
642 PATH_SEPARATOR | 784 PATH_SEPARATOR |
643 PACKAGE_NAME | 785 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 INSTALL_PROGRAM | |
698 INSTALL_SCRIPT | |
699 INSTALL_DATA | |
700 RANLIB | |
701 INSTALL_INFO | |
702 GZIP_PROG | |
703 MAKEINFO | |
704 cannot_dump | |
705 LD_SWITCH_SYSTEM | |
706 C_SWITCH_MACHINE | |
707 C_SWITCH_SYSTEM | |
708 LIBS_SYSTEM | |
709 CRT_DIR | |
710 LIB_MATH | |
711 START_FILES | |
712 LIBSOUND | |
713 PKG_CONFIG | |
714 ALSA_CFLAGS | |
715 ALSA_LIBS | |
716 CFLAGS_SOUND | |
717 SET_MAKE | |
718 MKDEPDIR | |
719 DEPFLAGS | |
720 XMKMF | |
721 LD_SWITCH_X_SITE_AUX | |
722 LD_SWITCH_X_SITE_AUX_RPATH | |
723 TEMACS_LDFLAGS2 | |
724 NS_OBJ | |
725 NS_SUPPORT | |
726 LIB_STANDARD | |
727 HAVE_XSERVER | |
728 GMALLOC_OBJ | |
729 VMLIMIT_OBJ | |
730 RSVG_CFLAGS | |
731 RSVG_LIBS | |
732 GTK_CFLAGS | |
733 GTK_LIBS | |
734 GTK_OBJ | |
735 DBUS_CFLAGS | |
736 DBUS_LIBS | |
737 DBUS_OBJ | |
738 GCONF_CFLAGS | |
739 GCONF_LIBS | |
740 LIBSELINUX_LIBS | |
741 LIBXTR6 | |
742 LIBXMU | |
743 FONTCONFIG_CFLAGS | |
744 FONTCONFIG_LIBS | |
745 XFT_CFLAGS | |
746 XFT_LIBS | |
747 LIBOTF_CFLAGS | |
748 LIBOTF_LIBS | |
749 M17N_FLT_CFLAGS | |
750 M17N_FLT_LIBS | |
751 FREETYPE_CFLAGS | |
752 FREETYPE_LIBS | |
753 LIBXPM | |
754 LIBJPEG | |
755 LIBPNG | |
756 LIBTIFF | |
757 LIBGIF | |
758 LIBGPM | |
759 LIBXSM | |
760 ALLOCA | |
761 liblockfile | |
762 LIBS_MAIL | |
763 BLESSMAIL_TARGET | |
764 LIBOBJS | |
765 NEED_SETGID | |
766 KMEM_GROUP | |
767 GETLOADAVG_LIBS | |
768 GETOPT_H | |
769 GETOPTOBJS | |
770 LIBS_TERMCAP | |
771 TERMCAP_OBJ | |
772 LIBHESIOD | |
773 LIBRESOLV | |
774 COM_ERRLIB | |
775 CRYPTOLIB | |
776 KRB5LIB | |
777 DESLIB | |
778 KRB4LIB | |
779 version | |
780 configuration | |
781 canonical | |
782 srcdir | |
783 lispdir | |
784 locallisppath | |
785 lisppath | |
786 x_default_search_path | |
787 etcdir | |
788 archlibdir | |
789 bitmapdir | |
790 gamedir | |
791 gameuser | |
792 unexec | |
793 LD_SWITCH_X_SITE | |
794 C_SWITCH_X_SITE | |
795 C_SWITCH_X_SYSTEM | |
796 X_TOOLKIT_TYPE | |
797 machfile | |
798 opsysfile | |
799 ns_appdir | |
800 ns_appbindir | |
801 ns_appresdir | |
802 ns_appsrc | |
803 GNU_OBJC_CFLAGS | |
804 OTHER_FILES | |
805 FONT_OBJ | |
806 XMENU_OBJ | |
807 XOBJ | |
808 WIDGET_OBJ | |
809 TOOLKIT_LIBW | |
810 LIBXT_OTHER | |
811 OLDXMENU_TARGET | |
812 OLDXMENU | |
813 LIBXMENU | |
814 LIBX_OTHER | |
815 OLDXMENU_DEPS | |
816 RALLOC_OBJ | |
817 CYGWIN_OBJ | |
818 PRE_ALLOC_OBJ | |
819 POST_ALLOC_OBJ | |
820 LD_SWITCH_SYSTEM_TEMACS | |
821 PRE_EDIT_LDFLAGS | |
822 POST_EDIT_LDFLAGS | |
823 LINKER | |
824 LIB_GCC | |
825 MOUSE_SUPPORT | |
826 TOOLTIP_SUPPORT | |
827 WINDOW_SUPPORT | |
828 LTLIBOBJS' | |
829 ac_subst_files='deps_frag | 786 ac_subst_files='deps_frag |
830 ns_frag' | 787 ns_frag' |
831 ac_user_opts=' | 788 ac_user_opts=' |
832 enable_option_checking | 789 enable_option_checking |
833 with_pop | 790 with_pop |
987 | 944 |
988 -disable-* | --disable-*) | 945 -disable-* | --disable-*) |
989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
990 # Reject names that are not valid shell variable names. | 947 # Reject names that are not valid shell variable names. |
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
992 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | 949 as_fn_error "invalid feature name: $ac_useropt" |
993 { (exit 1); exit 1; }; } | |
994 ac_useropt_orig=$ac_useropt | 950 ac_useropt_orig=$ac_useropt |
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
996 case $ac_user_opts in | 952 case $ac_user_opts in |
997 *" | 953 *" |
998 "enable_$ac_useropt" | 954 "enable_$ac_useropt" |
1014 | 970 |
1015 -enable-* | --enable-*) | 971 -enable-* | --enable-*) |
1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1017 # Reject names that are not valid shell variable names. | 973 # Reject names that are not valid shell variable names. |
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1019 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | 975 as_fn_error "invalid feature name: $ac_useropt" |
1020 { (exit 1); exit 1; }; } | |
1021 ac_useropt_orig=$ac_useropt | 976 ac_useropt_orig=$ac_useropt |
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1023 case $ac_user_opts in | 978 case $ac_user_opts in |
1024 *" | 979 *" |
1025 "enable_$ac_useropt" | 980 "enable_$ac_useropt" |
1219 | 1174 |
1220 -with-* | --with-*) | 1175 -with-* | --with-*) |
1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1222 # Reject names that are not valid shell variable names. | 1177 # Reject names that are not valid shell variable names. |
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1224 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | 1179 as_fn_error "invalid package name: $ac_useropt" |
1225 { (exit 1); exit 1; }; } | |
1226 ac_useropt_orig=$ac_useropt | 1180 ac_useropt_orig=$ac_useropt |
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1228 case $ac_user_opts in | 1182 case $ac_user_opts in |
1229 *" | 1183 *" |
1230 "with_$ac_useropt" | 1184 "with_$ac_useropt" |
1236 | 1190 |
1237 -without-* | --without-*) | 1191 -without-* | --without-*) |
1238 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1239 # Reject names that are not valid shell variable names. | 1193 # Reject names that are not valid shell variable names. |
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1241 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | 1195 as_fn_error "invalid package name: $ac_useropt" |
1242 { (exit 1); exit 1; }; } | |
1243 ac_useropt_orig=$ac_useropt | 1196 ac_useropt_orig=$ac_useropt |
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1245 case $ac_user_opts in | 1198 case $ac_user_opts in |
1246 *" | 1199 *" |
1247 "with_$ac_useropt" | 1200 "with_$ac_useropt" |
1267 ac_prev=x_libraries ;; | 1220 ac_prev=x_libraries ;; |
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1270 x_libraries=$ac_optarg ;; | 1223 x_libraries=$ac_optarg ;; |
1271 | 1224 |
1272 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option | 1225 -*) as_fn_error "unrecognized option: \`$ac_option' |
1273 Try \`$0 --help' for more information." >&2 | 1226 Try \`$0 --help' for more information." |
1274 { (exit 1); exit 1; }; } | |
1275 ;; | 1227 ;; |
1276 | 1228 |
1277 *=*) | 1229 *=*) |
1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1279 # Reject names that are not valid shell variable names. | 1231 # Reject names that are not valid shell variable names. |
1280 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | 1232 case $ac_envvar in #( |
1281 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | 1233 '' | [0-9]* | *[!_$as_cr_alnum]* ) |
1282 { (exit 1); exit 1; }; } | 1234 as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
1235 esac | |
1283 eval $ac_envvar=\$ac_optarg | 1236 eval $ac_envvar=\$ac_optarg |
1284 export $ac_envvar ;; | 1237 export $ac_envvar ;; |
1285 | 1238 |
1286 *) | 1239 *) |
1287 # FIXME: should be removed in autoconf 3.0. | 1240 # FIXME: should be removed in autoconf 3.0. |
1294 esac | 1247 esac |
1295 done | 1248 done |
1296 | 1249 |
1297 if test -n "$ac_prev"; then | 1250 if test -n "$ac_prev"; then |
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1299 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 | 1252 as_fn_error "missing argument to $ac_option" |
1300 { (exit 1); exit 1; }; } | |
1301 fi | 1253 fi |
1302 | 1254 |
1303 if test -n "$ac_unrecognized_opts"; then | 1255 if test -n "$ac_unrecognized_opts"; then |
1304 case $enable_option_checking in | 1256 case $enable_option_checking in |
1305 no) ;; | 1257 no) ;; |
1306 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 | 1258 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
1307 { (exit 1); exit 1; }; } ;; | 1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1308 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1309 esac | 1260 esac |
1310 fi | 1261 fi |
1311 | 1262 |
1312 # Check all directory arguments for consistency. | 1263 # Check all directory arguments for consistency. |
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 1264 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1325 # Be sure to have absolute directory names. | 1276 # Be sure to have absolute directory names. |
1326 case $ac_val in | 1277 case $ac_val in |
1327 [\\/$]* | ?:[\\/]* ) continue;; | 1278 [\\/$]* | ?:[\\/]* ) continue;; |
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1329 esac | 1280 esac |
1330 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 1281 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
1331 { (exit 1); exit 1; }; } | |
1332 done | 1282 done |
1333 | 1283 |
1334 # There might be people who depend on the old broken behavior: `$host' | 1284 # There might be people who depend on the old broken behavior: `$host' |
1335 # used to hold the argument of --host etc. | 1285 # used to hold the argument of --host etc. |
1336 # FIXME: To remove some day. | 1286 # FIXME: To remove some day. |
1356 | 1306 |
1357 | 1307 |
1358 ac_pwd=`pwd` && test -n "$ac_pwd" && | 1308 ac_pwd=`pwd` && test -n "$ac_pwd" && |
1359 ac_ls_di=`ls -di .` && | 1309 ac_ls_di=`ls -di .` && |
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1361 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 | 1311 as_fn_error "working directory cannot be determined" |
1362 { (exit 1); exit 1; }; } | |
1363 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1364 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 | 1313 as_fn_error "pwd does not report name of working directory" |
1365 { (exit 1); exit 1; }; } | |
1366 | 1314 |
1367 | 1315 |
1368 # Find the source files, if location was not specified. | 1316 # Find the source files, if location was not specified. |
1369 if test -z "$srcdir"; then | 1317 if test -z "$srcdir"; then |
1370 ac_srcdir_defaulted=yes | 1318 ac_srcdir_defaulted=yes |
1399 else | 1347 else |
1400 ac_srcdir_defaulted=no | 1348 ac_srcdir_defaulted=no |
1401 fi | 1349 fi |
1402 if test ! -r "$srcdir/$ac_unique_file"; then | 1350 if test ! -r "$srcdir/$ac_unique_file"; then |
1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1404 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | 1352 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
1405 { (exit 1); exit 1; }; } | |
1406 fi | 1353 fi |
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1408 ac_abs_confdir=`( | 1355 ac_abs_confdir=`( |
1409 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 | 1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
1410 { (exit 1); exit 1; }; } | |
1411 pwd)` | 1357 pwd)` |
1412 # When building in place, set srcdir=. | 1358 # When building in place, set srcdir=. |
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then | 1359 if test "$ac_abs_confdir" = "$ac_pwd"; then |
1414 srcdir=. | 1360 srcdir=. |
1415 fi | 1361 fi |
1584 CC C compiler command | 1530 CC C compiler command |
1585 CFLAGS C compiler flags | 1531 CFLAGS C compiler flags |
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | 1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1587 nonstandard directory <lib dir> | 1533 nonstandard directory <lib dir> |
1588 LIBS libraries to pass to the linker, e.g. -l<library> | 1534 LIBS libraries to pass to the linker, e.g. -l<library> |
1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | 1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1590 you have headers in a nonstandard directory <include dir> | 1536 you have headers in a nonstandard directory <include dir> |
1591 CPP C preprocessor | 1537 CPP C preprocessor |
1592 XMKMF Path to xmkmf, Makefile generator for X Window System | 1538 XMKMF Path to xmkmf, Makefile generator for X Window System |
1593 | 1539 |
1594 Use these variables to override the choices made by `configure' or to help | 1540 Use these variables to override the choices made by `configure' or to help |
1595 it to find libraries and programs with nonstandard names/locations. | 1541 it to find libraries and programs with nonstandard names/locations. |
1596 | 1542 |
1543 Report bugs to the package provider. | |
1597 _ACEOF | 1544 _ACEOF |
1598 ac_status=$? | 1545 ac_status=$? |
1599 fi | 1546 fi |
1600 | 1547 |
1601 if test "$ac_init_help" = "recursive"; then | 1548 if test "$ac_init_help" = "recursive"; then |
1655 | 1602 |
1656 test -n "$ac_init_help" && exit $ac_status | 1603 test -n "$ac_init_help" && exit $ac_status |
1657 if $ac_init_version; then | 1604 if $ac_init_version; then |
1658 cat <<\_ACEOF | 1605 cat <<\_ACEOF |
1659 emacs configure 24.0.50 | 1606 emacs configure 24.0.50 |
1660 generated by GNU Autoconf 2.62 | 1607 generated by GNU Autoconf 2.65 |
1661 | 1608 |
1662 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 1609 Copyright (C) 2009 Free Software Foundation, Inc. |
1663 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
1664 This configure script is free software; the Free Software Foundation | 1610 This configure script is free software; the Free Software Foundation |
1665 gives unlimited permission to copy, distribute and modify it. | 1611 gives unlimited permission to copy, distribute and modify it. |
1666 _ACEOF | 1612 _ACEOF |
1667 exit | 1613 exit |
1668 fi | 1614 fi |
1615 | |
1616 ## ------------------------ ## | |
1617 ## Autoconf initialization. ## | |
1618 ## ------------------------ ## | |
1619 | |
1620 # ac_fn_c_try_compile LINENO | |
1621 # -------------------------- | |
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1623 ac_fn_c_try_compile () | |
1624 { | |
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1626 rm -f conftest.$ac_objext | |
1627 if { { ac_try="$ac_compile" | |
1628 case "(($ac_try" in | |
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1630 *) ac_try_echo=$ac_try;; | |
1631 esac | |
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1633 $as_echo "$ac_try_echo"; } >&5 | |
1634 (eval "$ac_compile") 2>conftest.err | |
1635 ac_status=$? | |
1636 if test -s conftest.err; then | |
1637 grep -v '^ *+' conftest.err >conftest.er1 | |
1638 cat conftest.er1 >&5 | |
1639 mv -f conftest.er1 conftest.err | |
1640 fi | |
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1642 test $ac_status = 0; } && { | |
1643 test -z "$ac_c_werror_flag" || | |
1644 test ! -s conftest.err | |
1645 } && test -s conftest.$ac_objext; then : | |
1646 ac_retval=0 | |
1647 else | |
1648 $as_echo "$as_me: failed program was:" >&5 | |
1649 sed 's/^/| /' conftest.$ac_ext >&5 | |
1650 | |
1651 ac_retval=1 | |
1652 fi | |
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1654 as_fn_set_status $ac_retval | |
1655 | |
1656 } # ac_fn_c_try_compile | |
1657 | |
1658 # ac_fn_c_try_link LINENO | |
1659 # ----------------------- | |
1660 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1661 ac_fn_c_try_link () | |
1662 { | |
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1664 rm -f conftest.$ac_objext conftest$ac_exeext | |
1665 if { { ac_try="$ac_link" | |
1666 case "(($ac_try" in | |
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1668 *) ac_try_echo=$ac_try;; | |
1669 esac | |
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1671 $as_echo "$ac_try_echo"; } >&5 | |
1672 (eval "$ac_link") 2>conftest.err | |
1673 ac_status=$? | |
1674 if test -s conftest.err; then | |
1675 grep -v '^ *+' conftest.err >conftest.er1 | |
1676 cat conftest.er1 >&5 | |
1677 mv -f conftest.er1 conftest.err | |
1678 fi | |
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1680 test $ac_status = 0; } && { | |
1681 test -z "$ac_c_werror_flag" || | |
1682 test ! -s conftest.err | |
1683 } && test -s conftest$ac_exeext && { | |
1684 test "$cross_compiling" = yes || | |
1685 $as_test_x conftest$ac_exeext | |
1686 }; then : | |
1687 ac_retval=0 | |
1688 else | |
1689 $as_echo "$as_me: failed program was:" >&5 | |
1690 sed 's/^/| /' conftest.$ac_ext >&5 | |
1691 | |
1692 ac_retval=1 | |
1693 fi | |
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1696 # interfere with the next link command; also delete a directory that is | |
1697 # left behind by Apple's compiler. We do this before executing the actions. | |
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1700 as_fn_set_status $ac_retval | |
1701 | |
1702 } # ac_fn_c_try_link | |
1703 | |
1704 # ac_fn_c_try_cpp LINENO | |
1705 # ---------------------- | |
1706 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1707 ac_fn_c_try_cpp () | |
1708 { | |
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1710 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1711 case "(($ac_try" in | |
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1713 *) ac_try_echo=$ac_try;; | |
1714 esac | |
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1716 $as_echo "$ac_try_echo"; } >&5 | |
1717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1718 ac_status=$? | |
1719 if test -s conftest.err; then | |
1720 grep -v '^ *+' conftest.err >conftest.er1 | |
1721 cat conftest.er1 >&5 | |
1722 mv -f conftest.er1 conftest.err | |
1723 fi | |
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1725 test $ac_status = 0; } >/dev/null && { | |
1726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1727 test ! -s conftest.err | |
1728 }; then : | |
1729 ac_retval=0 | |
1730 else | |
1731 $as_echo "$as_me: failed program was:" >&5 | |
1732 sed 's/^/| /' conftest.$ac_ext >&5 | |
1733 | |
1734 ac_retval=1 | |
1735 fi | |
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1737 as_fn_set_status $ac_retval | |
1738 | |
1739 } # ac_fn_c_try_cpp | |
1740 | |
1741 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1742 # ------------------------------------------------------- | |
1743 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1744 # the include files in INCLUDES and setting the cache variable VAR | |
1745 # accordingly. | |
1746 ac_fn_c_check_header_mongrel () | |
1747 { | |
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1749 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1751 $as_echo_n "checking for $2... " >&6; } | |
1752 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1753 $as_echo_n "(cached) " >&6 | |
1754 fi | |
1755 eval ac_res=\$$3 | |
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1757 $as_echo "$ac_res" >&6; } | |
1758 else | |
1759 # Is the header compilable? | |
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1761 $as_echo_n "checking $2 usability... " >&6; } | |
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1763 /* end confdefs.h. */ | |
1764 $4 | |
1765 #include <$2> | |
1766 _ACEOF | |
1767 if ac_fn_c_try_compile "$LINENO"; then : | |
1768 ac_header_compiler=yes | |
1769 else | |
1770 ac_header_compiler=no | |
1771 fi | |
1772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1774 $as_echo "$ac_header_compiler" >&6; } | |
1775 | |
1776 # Is the header present? | |
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1778 $as_echo_n "checking $2 presence... " >&6; } | |
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1780 /* end confdefs.h. */ | |
1781 #include <$2> | |
1782 _ACEOF | |
1783 if ac_fn_c_try_cpp "$LINENO"; then : | |
1784 ac_header_preproc=yes | |
1785 else | |
1786 ac_header_preproc=no | |
1787 fi | |
1788 rm -f conftest.err conftest.$ac_ext | |
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1790 $as_echo "$ac_header_preproc" >&6; } | |
1791 | |
1792 # So? What about this header? | |
1793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1794 yes:no: ) | |
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1796 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1798 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1799 ;; | |
1800 no:yes:* ) | |
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1802 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1804 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1806 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1808 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1810 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1811 ;; | |
1812 esac | |
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1814 $as_echo_n "checking for $2... " >&6; } | |
1815 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1816 $as_echo_n "(cached) " >&6 | |
1817 else | |
1818 eval "$3=\$ac_header_compiler" | |
1819 fi | |
1820 eval ac_res=\$$3 | |
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1822 $as_echo "$ac_res" >&6; } | |
1823 fi | |
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1825 | |
1826 } # ac_fn_c_check_header_mongrel | |
1827 | |
1828 # ac_fn_c_try_run LINENO | |
1829 # ---------------------- | |
1830 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1831 # that executables *can* be run. | |
1832 ac_fn_c_try_run () | |
1833 { | |
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1835 if { { ac_try="$ac_link" | |
1836 case "(($ac_try" in | |
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1838 *) ac_try_echo=$ac_try;; | |
1839 esac | |
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1841 $as_echo "$ac_try_echo"; } >&5 | |
1842 (eval "$ac_link") 2>&5 | |
1843 ac_status=$? | |
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1845 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1846 { { case "(($ac_try" in | |
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1848 *) ac_try_echo=$ac_try;; | |
1849 esac | |
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1851 $as_echo "$ac_try_echo"; } >&5 | |
1852 (eval "$ac_try") 2>&5 | |
1853 ac_status=$? | |
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1855 test $ac_status = 0; }; }; then : | |
1856 ac_retval=0 | |
1857 else | |
1858 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1859 $as_echo "$as_me: failed program was:" >&5 | |
1860 sed 's/^/| /' conftest.$ac_ext >&5 | |
1861 | |
1862 ac_retval=$ac_status | |
1863 fi | |
1864 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1866 as_fn_set_status $ac_retval | |
1867 | |
1868 } # ac_fn_c_try_run | |
1869 | |
1870 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1871 # ------------------------------------------------------- | |
1872 # Tests whether HEADER exists and can be compiled using the include files in | |
1873 # INCLUDES, setting the cache variable VAR accordingly. | |
1874 ac_fn_c_check_header_compile () | |
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 $4 | |
1885 #include <$2> | |
1886 _ACEOF | |
1887 if ac_fn_c_try_compile "$LINENO"; then : | |
1888 eval "$3=yes" | |
1889 else | |
1890 eval "$3=no" | |
1891 fi | |
1892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1893 fi | |
1894 eval ac_res=\$$3 | |
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1896 $as_echo "$ac_res" >&6; } | |
1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1898 | |
1899 } # ac_fn_c_check_header_compile | |
1900 | |
1901 # ac_fn_c_check_decl LINENO SYMBOL VAR | |
1902 # ------------------------------------ | |
1903 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1904 ac_fn_c_check_decl () | |
1905 { | |
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 | |
1908 $as_echo_n "checking whether $2 is declared... " >&6; } | |
1909 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1910 $as_echo_n "(cached) " >&6 | |
1911 else | |
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1913 /* end confdefs.h. */ | |
1914 $4 | |
1915 int | |
1916 main () | |
1917 { | |
1918 #ifndef $2 | |
1919 (void) $2; | |
1920 #endif | |
1921 | |
1922 ; | |
1923 return 0; | |
1924 } | |
1925 _ACEOF | |
1926 if ac_fn_c_try_compile "$LINENO"; then : | |
1927 eval "$3=yes" | |
1928 else | |
1929 eval "$3=no" | |
1930 fi | |
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1932 fi | |
1933 eval ac_res=\$$3 | |
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1935 $as_echo "$ac_res" >&6; } | |
1936 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1937 | |
1938 } # ac_fn_c_check_decl | |
1939 | |
1940 # ac_fn_c_check_header_preproc LINENO HEADER VAR | |
1941 # ---------------------------------------------- | |
1942 # Tests whether HEADER is present, setting the cache variable VAR accordingly. | |
1943 ac_fn_c_check_header_preproc () | |
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" >&5 | |
1947 $as_echo_n "checking for $2... " >&6; } | |
1948 if { as_var=$3; 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 #include <$2> | |
1954 _ACEOF | |
1955 if ac_fn_c_try_cpp "$LINENO"; then : | |
1956 eval "$3=yes" | |
1957 else | |
1958 eval "$3=no" | |
1959 fi | |
1960 rm -f conftest.err conftest.$ac_ext | |
1961 fi | |
1962 eval ac_res=\$$3 | |
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1964 $as_echo "$ac_res" >&6; } | |
1965 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1966 | |
1967 } # ac_fn_c_check_header_preproc | |
1968 | |
1969 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
1970 # ---------------------------------------------------- | |
1971 # Tries to find if the field MEMBER exists in type AGGR, after including | |
1972 # INCLUDES, setting cache variable VAR accordingly. | |
1973 ac_fn_c_check_member () | |
1974 { | |
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1977 $as_echo_n "checking for $2.$3... " >&6; } | |
1978 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1979 $as_echo_n "(cached) " >&6 | |
1980 else | |
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1982 /* end confdefs.h. */ | |
1983 $5 | |
1984 int | |
1985 main () | |
1986 { | |
1987 static $2 ac_aggr; | |
1988 if (ac_aggr.$3) | |
1989 return 0; | |
1990 ; | |
1991 return 0; | |
1992 } | |
1993 _ACEOF | |
1994 if ac_fn_c_try_compile "$LINENO"; then : | |
1995 eval "$4=yes" | |
1996 else | |
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1998 /* end confdefs.h. */ | |
1999 $5 | |
2000 int | |
2001 main () | |
2002 { | |
2003 static $2 ac_aggr; | |
2004 if (sizeof ac_aggr.$3) | |
2005 return 0; | |
2006 ; | |
2007 return 0; | |
2008 } | |
2009 _ACEOF | |
2010 if ac_fn_c_try_compile "$LINENO"; then : | |
2011 eval "$4=yes" | |
2012 else | |
2013 eval "$4=no" | |
2014 fi | |
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2016 fi | |
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2018 fi | |
2019 eval ac_res=\$$4 | |
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2021 $as_echo "$ac_res" >&6; } | |
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2023 | |
2024 } # ac_fn_c_check_member | |
2025 | |
2026 # ac_fn_c_check_func LINENO FUNC VAR | |
2027 # ---------------------------------- | |
2028 # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2029 ac_fn_c_check_func () | |
2030 { | |
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2033 $as_echo_n "checking for $2... " >&6; } | |
2034 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2035 $as_echo_n "(cached) " >&6 | |
2036 else | |
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2038 /* end confdefs.h. */ | |
2039 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2040 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2041 #define $2 innocuous_$2 | |
2042 | |
2043 /* System header to define __stub macros and hopefully few prototypes, | |
2044 which can conflict with char $2 (); below. | |
2045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2046 <limits.h> exists even on freestanding compilers. */ | |
2047 | |
2048 #ifdef __STDC__ | |
2049 # include <limits.h> | |
2050 #else | |
2051 # include <assert.h> | |
2052 #endif | |
2053 | |
2054 #undef $2 | |
2055 | |
2056 /* Override any GCC internal prototype to avoid an error. | |
2057 Use char because int might match the return type of a GCC | |
2058 builtin and then its argument prototype would still apply. */ | |
2059 #ifdef __cplusplus | |
2060 extern "C" | |
2061 #endif | |
2062 char $2 (); | |
2063 /* The GNU C library defines this for functions which it implements | |
2064 to always fail with ENOSYS. Some functions are actually named | |
2065 something starting with __ and the normal name is an alias. */ | |
2066 #if defined __stub_$2 || defined __stub___$2 | |
2067 choke me | |
2068 #endif | |
2069 | |
2070 int | |
2071 main () | |
2072 { | |
2073 return $2 (); | |
2074 ; | |
2075 return 0; | |
2076 } | |
2077 _ACEOF | |
2078 if ac_fn_c_try_link "$LINENO"; then : | |
2079 eval "$3=yes" | |
2080 else | |
2081 eval "$3=no" | |
2082 fi | |
2083 rm -f core conftest.err conftest.$ac_objext \ | |
2084 conftest$ac_exeext conftest.$ac_ext | |
2085 fi | |
2086 eval ac_res=\$$3 | |
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2088 $as_echo "$ac_res" >&6; } | |
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2090 | |
2091 } # ac_fn_c_check_func | |
2092 | |
2093 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2094 # ------------------------------------------- | |
2095 # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2096 # variable VAR accordingly. | |
2097 ac_fn_c_check_type () | |
2098 { | |
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2101 $as_echo_n "checking for $2... " >&6; } | |
2102 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2103 $as_echo_n "(cached) " >&6 | |
2104 else | |
2105 eval "$3=no" | |
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2107 /* end confdefs.h. */ | |
2108 $4 | |
2109 int | |
2110 main () | |
2111 { | |
2112 if (sizeof ($2)) | |
2113 return 0; | |
2114 ; | |
2115 return 0; | |
2116 } | |
2117 _ACEOF | |
2118 if ac_fn_c_try_compile "$LINENO"; then : | |
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2120 /* end confdefs.h. */ | |
2121 $4 | |
2122 int | |
2123 main () | |
2124 { | |
2125 if (sizeof (($2))) | |
2126 return 0; | |
2127 ; | |
2128 return 0; | |
2129 } | |
2130 _ACEOF | |
2131 if ac_fn_c_try_compile "$LINENO"; then : | |
2132 | |
2133 else | |
2134 eval "$3=yes" | |
2135 fi | |
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2137 fi | |
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2139 fi | |
2140 eval ac_res=\$$3 | |
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2142 $as_echo "$ac_res" >&6; } | |
2143 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2144 | |
2145 } # ac_fn_c_check_type | |
1669 cat >config.log <<_ACEOF | 2146 cat >config.log <<_ACEOF |
1670 This file contains any messages produced by compilers while | 2147 This file contains any messages produced by compilers while |
1671 running configure, to aid debugging if configure makes a mistake. | 2148 running configure, to aid debugging if configure makes a mistake. |
1672 | 2149 |
1673 It was created by emacs $as_me 24.0.50, which was | 2150 It was created by emacs $as_me 24.0.50, which was |
1674 generated by GNU Autoconf 2.62. Invocation command line was | 2151 generated by GNU Autoconf 2.65. Invocation command line was |
1675 | 2152 |
1676 $ $0 $@ | 2153 $ $0 $@ |
1677 | 2154 |
1678 _ACEOF | 2155 _ACEOF |
1679 exec 5>>config.log | 2156 exec 5>>config.log |
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1706 for as_dir in $PATH | 2183 for as_dir in $PATH |
1707 do | 2184 do |
1708 IFS=$as_save_IFS | 2185 IFS=$as_save_IFS |
1709 test -z "$as_dir" && as_dir=. | 2186 test -z "$as_dir" && as_dir=. |
1710 $as_echo "PATH: $as_dir" | 2187 $as_echo "PATH: $as_dir" |
1711 done | 2188 done |
1712 IFS=$as_save_IFS | 2189 IFS=$as_save_IFS |
1713 | 2190 |
1714 } >&5 | 2191 } >&5 |
1715 | 2192 |
1716 cat >&5 <<_ACEOF | 2193 cat >&5 <<_ACEOF |
1743 continue ;; | 2220 continue ;; |
1744 *\'*) | 2221 *\'*) |
1745 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 2222 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1746 esac | 2223 esac |
1747 case $ac_pass in | 2224 case $ac_pass in |
1748 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 2225 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1749 2) | 2226 2) |
1750 ac_configure_args1="$ac_configure_args1 '$ac_arg'" | 2227 as_fn_append ac_configure_args1 " '$ac_arg'" |
1751 if test $ac_must_keep_next = true; then | 2228 if test $ac_must_keep_next = true; then |
1752 ac_must_keep_next=false # Got value, back to normal. | 2229 ac_must_keep_next=false # Got value, back to normal. |
1753 else | 2230 else |
1754 case $ac_arg in | 2231 case $ac_arg in |
1755 *=* | --config-cache | -C | -disable-* | --disable-* \ | 2232 *=* | --config-cache | -C | -disable-* | --disable-* \ |
1761 esac | 2238 esac |
1762 ;; | 2239 ;; |
1763 -* ) ac_must_keep_next=true ;; | 2240 -* ) ac_must_keep_next=true ;; |
1764 esac | 2241 esac |
1765 fi | 2242 fi |
1766 ac_configure_args="$ac_configure_args '$ac_arg'" | 2243 as_fn_append ac_configure_args " '$ac_arg'" |
1767 ;; | 2244 ;; |
1768 esac | 2245 esac |
1769 done | 2246 done |
1770 done | 2247 done |
1771 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | 2248 { ac_configure_args0=; unset ac_configure_args0;} |
1772 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | 2249 { ac_configure_args1=; unset ac_configure_args1;} |
1773 | 2250 |
1774 # When interrupted or exit'd, cleanup temporary files, and complete | 2251 # When interrupted or exit'd, cleanup temporary files, and complete |
1775 # config.log. We remove comments because anyway the quotes in there | 2252 # config.log. We remove comments because anyway the quotes in there |
1776 # would cause problems or look ugly. | 2253 # would cause problems or look ugly. |
1777 # WARNING: Use '\'' to represent an apostrophe within the trap. | 2254 # WARNING: Use '\'' to represent an apostrophe within the trap. |
1792 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 2269 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1793 eval ac_val=\$$ac_var | 2270 eval ac_val=\$$ac_var |
1794 case $ac_val in #( | 2271 case $ac_val in #( |
1795 *${as_nl}*) | 2272 *${as_nl}*) |
1796 case $ac_var in #( | 2273 case $ac_var in #( |
1797 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | 2274 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1798 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | 2275 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1799 esac | 2276 esac |
1800 case $ac_var in #( | 2277 case $ac_var in #( |
1801 _ | IFS | as_nl) ;; #( | 2278 _ | IFS | as_nl) ;; #( |
1802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 2279 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1803 *) $as_unset $ac_var ;; | 2280 *) { eval $ac_var=; unset $ac_var;} ;; |
1804 esac ;; | 2281 esac ;; |
1805 esac | 2282 esac |
1806 done | 2283 done |
1807 (set) 2>&1 | | 2284 (set) 2>&1 | |
1808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 2285 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1870 rm -f core *.core core.conftest.* && | 2347 rm -f core *.core core.conftest.* && |
1871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 2348 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1872 exit $exit_status | 2349 exit $exit_status |
1873 ' 0 | 2350 ' 0 |
1874 for ac_signal in 1 2 13 15; do | 2351 for ac_signal in 1 2 13 15; do |
1875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | 2352 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1876 done | 2353 done |
1877 ac_signal=0 | 2354 ac_signal=0 |
1878 | 2355 |
1879 # confdefs.h avoids OS command line length limits that DEFS can exceed. | 2356 # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1880 rm -f -r conftest* confdefs.h | 2357 rm -f -r conftest* confdefs.h |
1881 | 2358 |
2359 $as_echo "/* confdefs.h */" > confdefs.h | |
2360 | |
1882 # Predefined preprocessor variables. | 2361 # Predefined preprocessor variables. |
1883 | 2362 |
1884 cat >>confdefs.h <<_ACEOF | 2363 cat >>confdefs.h <<_ACEOF |
1885 #define PACKAGE_NAME "$PACKAGE_NAME" | 2364 #define PACKAGE_NAME "$PACKAGE_NAME" |
1886 _ACEOF | 2365 _ACEOF |
1887 | 2366 |
1888 | |
1889 cat >>confdefs.h <<_ACEOF | 2367 cat >>confdefs.h <<_ACEOF |
1890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 2368 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1891 _ACEOF | 2369 _ACEOF |
1892 | 2370 |
1893 | |
1894 cat >>confdefs.h <<_ACEOF | 2371 cat >>confdefs.h <<_ACEOF |
1895 #define PACKAGE_VERSION "$PACKAGE_VERSION" | 2372 #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1896 _ACEOF | 2373 _ACEOF |
1897 | 2374 |
1898 | |
1899 cat >>confdefs.h <<_ACEOF | 2375 cat >>confdefs.h <<_ACEOF |
1900 #define PACKAGE_STRING "$PACKAGE_STRING" | 2376 #define PACKAGE_STRING "$PACKAGE_STRING" |
1901 _ACEOF | 2377 _ACEOF |
1902 | 2378 |
1903 | |
1904 cat >>confdefs.h <<_ACEOF | 2379 cat >>confdefs.h <<_ACEOF |
1905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 2380 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2381 _ACEOF | |
2382 | |
2383 cat >>confdefs.h <<_ACEOF | |
2384 #define PACKAGE_URL "$PACKAGE_URL" | |
1906 _ACEOF | 2385 _ACEOF |
1907 | 2386 |
1908 | 2387 |
1909 # Let the site file select an alternate cache file if it wants to. | 2388 # Let the site file select an alternate cache file if it wants to. |
1910 # Prefer an explicitly selected file to automatically selected ones. | 2389 # Prefer an explicitly selected file to automatically selected ones. |
1920 ac_site_file2=$ac_default_prefix/etc/config.site | 2399 ac_site_file2=$ac_default_prefix/etc/config.site |
1921 fi | 2400 fi |
1922 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 2401 for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
1923 do | 2402 do |
1924 test "x$ac_site_file" = xNONE && continue | 2403 test "x$ac_site_file" = xNONE && continue |
1925 if test -r "$ac_site_file"; then | 2404 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
1926 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1927 $as_echo "$as_me: loading site script $ac_site_file" >&6;} | 2406 $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
1928 sed 's/^/| /' "$ac_site_file" >&5 | 2407 sed 's/^/| /' "$ac_site_file" >&5 |
1929 . "$ac_site_file" | 2408 . "$ac_site_file" |
1930 fi | 2409 fi |
1931 done | 2410 done |
1932 | 2411 |
1933 if test -r "$cache_file"; then | 2412 if test -r "$cache_file"; then |
1934 # Some versions of bash will fail to source /dev/null (special | 2413 # Some versions of bash will fail to source /dev/null (special files |
1935 # files actually), so we avoid doing that. | 2414 # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
1936 if test -f "$cache_file"; then | 2415 if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
1937 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 | 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1938 $as_echo "$as_me: loading cache $cache_file" >&6;} | 2417 $as_echo "$as_me: loading cache $cache_file" >&6;} |
1939 case $cache_file in | 2418 case $cache_file in |
1940 [\\/]* | ?:[\\/]* ) . "$cache_file";; | 2419 [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1941 *) . "./$cache_file";; | 2420 *) . "./$cache_file";; |
1942 esac | 2421 esac |
1943 fi | 2422 fi |
1944 else | 2423 else |
1945 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 | 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1946 $as_echo "$as_me: creating cache $cache_file" >&6;} | 2425 $as_echo "$as_me: creating cache $cache_file" >&6;} |
1947 >$cache_file | 2426 >$cache_file |
1948 fi | 2427 fi |
1949 | 2428 |
1950 ac_header_list="$ac_header_list sys/time.h" | 2429 as_fn_append ac_header_list " stdlib.h" |
1951 ac_header_list="$ac_header_list unistd.h" | 2430 as_fn_append ac_header_list " unistd.h" |
1952 ac_func_list="$ac_func_list alarm" | 2431 as_fn_append ac_header_list " sys/param.h" |
2432 as_fn_append ac_header_list " sys/time.h" | |
2433 as_fn_append ac_func_list " alarm" | |
1953 # Check that the precious variables saved in the cache have kept the same | 2434 # Check that the precious variables saved in the cache have kept the same |
1954 # value. | 2435 # value. |
1955 ac_cache_corrupted=false | 2436 ac_cache_corrupted=false |
1956 for ac_var in $ac_precious_vars; do | 2437 for ac_var in $ac_precious_vars; do |
1957 eval ac_old_set=\$ac_cv_env_${ac_var}_set | 2438 eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1958 eval ac_new_set=\$ac_env_${ac_var}_set | 2439 eval ac_new_set=\$ac_env_${ac_var}_set |
1959 eval ac_old_val=\$ac_cv_env_${ac_var}_value | 2440 eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1960 eval ac_new_val=\$ac_env_${ac_var}_value | 2441 eval ac_new_val=\$ac_env_${ac_var}_value |
1961 case $ac_old_set,$ac_new_set in | 2442 case $ac_old_set,$ac_new_set in |
1962 set,) | 2443 set,) |
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1964 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 2445 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1965 ac_cache_corrupted=: ;; | 2446 ac_cache_corrupted=: ;; |
1966 ,set) | 2447 ,set) |
1967 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
1968 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 2449 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1969 ac_cache_corrupted=: ;; | 2450 ac_cache_corrupted=: ;; |
1970 ,);; | 2451 ,);; |
1971 *) | 2452 *) |
1972 if test "x$ac_old_val" != "x$ac_new_val"; then | 2453 if test "x$ac_old_val" != "x$ac_new_val"; then |
1973 # differences in whitespace do not lead to failure. | 2454 # differences in whitespace do not lead to failure. |
1974 ac_old_val_w=`echo x $ac_old_val` | 2455 ac_old_val_w=`echo x $ac_old_val` |
1975 ac_new_val_w=`echo x $ac_new_val` | 2456 ac_new_val_w=`echo x $ac_new_val` |
1976 if test "$ac_old_val_w" != "$ac_new_val_w"; then | 2457 if test "$ac_old_val_w" != "$ac_new_val_w"; then |
1977 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
1978 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 2459 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1979 ac_cache_corrupted=: | 2460 ac_cache_corrupted=: |
1980 else | 2461 else |
1981 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
1982 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 2463 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
1983 eval $ac_var=\$ac_old_val | 2464 eval $ac_var=\$ac_old_val |
1984 fi | 2465 fi |
1985 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
1986 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | 2467 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
1987 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
1988 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | 2469 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
1989 fi;; | 2470 fi;; |
1990 esac | 2471 esac |
1991 # Pass precious variables to config.status. | 2472 # Pass precious variables to config.status. |
1992 if test "$ac_new_set" = set; then | 2473 if test "$ac_new_set" = set; then |
1994 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 2475 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1995 *) ac_arg=$ac_var=$ac_new_val ;; | 2476 *) ac_arg=$ac_var=$ac_new_val ;; |
1996 esac | 2477 esac |
1997 case " $ac_configure_args " in | 2478 case " $ac_configure_args " in |
1998 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | 2479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1999 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 2480 *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2000 esac | 2481 esac |
2001 fi | 2482 fi |
2002 done | 2483 done |
2003 if $ac_cache_corrupted; then | 2484 if $ac_cache_corrupted; then |
2004 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 2488 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2006 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | 2489 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2007 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | 2490 fi |
2008 { (exit 1); exit 1; }; } | 2491 ## -------------------- ## |
2009 fi | 2492 ## Main body of script. ## |
2010 | 2493 ## -------------------- ## |
2011 | |
2012 | |
2013 | |
2014 | |
2015 | |
2016 | |
2017 | |
2018 | |
2019 | |
2020 | |
2021 | |
2022 | |
2023 | |
2024 | |
2025 | |
2026 | |
2027 | |
2028 | |
2029 | |
2030 | |
2031 | |
2032 | |
2033 | |
2034 | 2494 |
2035 ac_ext=c | 2495 ac_ext=c |
2036 ac_cpp='$CPP $CPPFLAGS' | 2496 ac_cpp='$CPP $CPPFLAGS' |
2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2067 | 2527 |
2068 | 2528 |
2069 | 2529 |
2070 | 2530 |
2071 # Check whether --with-pop was given. | 2531 # Check whether --with-pop was given. |
2072 if test "${with_pop+set}" = set; then | 2532 if test "${with_pop+set}" = set; then : |
2073 withval=$with_pop; | 2533 withval=$with_pop; |
2074 else | 2534 else |
2075 with_pop=yes | 2535 with_pop=yes |
2076 fi | 2536 fi |
2077 | 2537 |
2078 if test "$with_pop" = yes; then | 2538 if test "$with_pop" = yes; then |
2079 cat >>confdefs.h <<\_ACEOF | 2539 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h |
2080 #define MAIL_USE_POP 1 | 2540 |
2081 _ACEOF | 2541 fi |
2082 | |
2083 fi | |
2084 | |
2085 | 2542 |
2086 | 2543 |
2087 # Check whether --with-kerberos was given. | 2544 # Check whether --with-kerberos was given. |
2088 if test "${with_kerberos+set}" = set; then | 2545 if test "${with_kerberos+set}" = set; then : |
2089 withval=$with_kerberos; | 2546 withval=$with_kerberos; |
2090 else | 2547 else |
2091 with_kerberos=no | 2548 with_kerberos=no |
2092 fi | 2549 fi |
2093 | 2550 |
2094 if test "$with_kerberos" != no; then | 2551 if test "$with_kerberos" != no; then |
2095 cat >>confdefs.h <<\_ACEOF | 2552 $as_echo "#define KERBEROS 1" >>confdefs.h |
2096 #define KERBEROS 1 | 2553 |
2097 _ACEOF | 2554 fi |
2098 | |
2099 fi | |
2100 | |
2101 | 2555 |
2102 | 2556 |
2103 # Check whether --with-kerberos5 was given. | 2557 # Check whether --with-kerberos5 was given. |
2104 if test "${with_kerberos5+set}" = set; then | 2558 if test "${with_kerberos5+set}" = set; then : |
2105 withval=$with_kerberos5; | 2559 withval=$with_kerberos5; |
2106 else | 2560 else |
2107 with_kerberos5=no | 2561 with_kerberos5=no |
2108 fi | 2562 fi |
2109 | 2563 |
2110 if test "${with_kerberos5}" != no; then | 2564 if test "${with_kerberos5}" != no; then |
2111 if test "${with_kerberos}" = no; then | 2565 if test "${with_kerberos}" = no; then |
2112 with_kerberos=yes | 2566 with_kerberos=yes |
2113 cat >>confdefs.h <<\_ACEOF | 2567 $as_echo "#define KERBEROS 1" >>confdefs.h |
2114 #define KERBEROS 1 | |
2115 _ACEOF | |
2116 | 2568 |
2117 fi | 2569 fi |
2118 | 2570 |
2119 cat >>confdefs.h <<\_ACEOF | 2571 $as_echo "#define KERBEROS5 1" >>confdefs.h |
2120 #define KERBEROS5 1 | |
2121 _ACEOF | |
2122 | 2572 |
2123 fi | 2573 fi |
2124 | 2574 |
2125 | 2575 |
2126 # Check whether --with-hesiod was given. | 2576 # Check whether --with-hesiod was given. |
2127 if test "${with_hesiod+set}" = set; then | 2577 if test "${with_hesiod+set}" = set; then : |
2128 withval=$with_hesiod; | 2578 withval=$with_hesiod; |
2129 else | 2579 else |
2130 with_hesiod=no | 2580 with_hesiod=no |
2131 fi | 2581 fi |
2132 | 2582 |
2133 if test "$with_hesiod" != no; then | 2583 if test "$with_hesiod" != no; then |
2134 | 2584 |
2135 cat >>confdefs.h <<\_ACEOF | 2585 $as_echo "#define HESIOD 1" >>confdefs.h |
2136 #define HESIOD 1 | |
2137 _ACEOF | |
2138 | 2586 |
2139 fi | 2587 fi |
2140 | 2588 |
2141 | 2589 |
2142 # Check whether --with-mmdf was given. | 2590 # Check whether --with-mmdf was given. |
2143 if test "${with_mmdf+set}" = set; then | 2591 if test "${with_mmdf+set}" = set; then : |
2144 withval=$with_mmdf; | 2592 withval=$with_mmdf; |
2145 else | 2593 else |
2146 with_mmdf=no | 2594 with_mmdf=no |
2147 fi | 2595 fi |
2148 | 2596 |
2149 if test "$with_mmdf" != no; then | 2597 if test "$with_mmdf" != no; then |
2150 | 2598 |
2151 cat >>confdefs.h <<\_ACEOF | 2599 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h |
2152 #define MAIL_USE_MMDF 1 | |
2153 _ACEOF | |
2154 | 2600 |
2155 fi | 2601 fi |
2156 | 2602 |
2157 | 2603 |
2158 # Check whether --with-mail-unlink was given. | 2604 # Check whether --with-mail-unlink was given. |
2159 if test "${with_mail_unlink+set}" = set; then | 2605 if test "${with_mail_unlink+set}" = set; then : |
2160 withval=$with_mail_unlink; | 2606 withval=$with_mail_unlink; |
2161 else | 2607 else |
2162 with_mail_unlink=no | 2608 with_mail_unlink=no |
2163 fi | 2609 fi |
2164 | 2610 |
2165 if test "$with_mail_unlink" != no; then | 2611 if test "$with_mail_unlink" != no; then |
2166 | 2612 |
2167 cat >>confdefs.h <<\_ACEOF | 2613 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h |
2168 #define MAIL_UNLINK_SPOOL 1 | |
2169 _ACEOF | |
2170 | 2614 |
2171 fi | 2615 fi |
2172 | 2616 |
2173 | 2617 |
2174 # Check whether --with-mailhost was given. | 2618 # Check whether --with-mailhost was given. |
2175 if test "${with_mailhost+set}" = set; then | 2619 if test "${with_mailhost+set}" = set; then : |
2176 withval=$with_mailhost; | 2620 withval=$with_mailhost; |
2177 cat >>confdefs.h <<_ACEOF | 2621 cat >>confdefs.h <<_ACEOF |
2178 #define MAILHOST "$withval" | 2622 #define MAILHOST "$withval" |
2179 _ACEOF | 2623 _ACEOF |
2180 | 2624 |
2181 fi | 2625 fi |
2182 | 2626 |
2183 | 2627 |
2184 | 2628 |
2185 # Check whether --with-sound was given. | 2629 # Check whether --with-sound was given. |
2186 if test "${with_sound+set}" = set; then | 2630 if test "${with_sound+set}" = set; then : |
2187 withval=$with_sound; | 2631 withval=$with_sound; |
2188 else | 2632 else |
2189 with_sound=yes | 2633 with_sound=yes |
2190 fi | 2634 fi |
2191 | 2635 |
2192 | 2636 |
2193 | 2637 |
2194 # Check whether --with-sync-input was given. | 2638 # Check whether --with-sync-input was given. |
2195 if test "${with_sync_input+set}" = set; then | 2639 if test "${with_sync_input+set}" = set; then : |
2196 withval=$with_sync_input; | 2640 withval=$with_sync_input; |
2197 else | 2641 else |
2198 with_sync_input=yes | 2642 with_sync_input=yes |
2199 fi | 2643 fi |
2200 | 2644 |
2201 if test "$with_sync_input" = yes; then | 2645 if test "$with_sync_input" = yes; then |
2202 | 2646 |
2203 cat >>confdefs.h <<\_ACEOF | 2647 $as_echo "#define SYNC_INPUT 1" >>confdefs.h |
2204 #define SYNC_INPUT 1 | |
2205 _ACEOF | |
2206 | 2648 |
2207 fi | 2649 fi |
2208 | 2650 |
2209 | 2651 |
2210 # Check whether --with-x-toolkit was given. | 2652 # Check whether --with-x-toolkit was given. |
2211 if test "${with_x_toolkit+set}" = set; then | 2653 if test "${with_x_toolkit+set}" = set; then : |
2212 withval=$with_x_toolkit; case "${withval}" in | 2654 withval=$with_x_toolkit; case "${withval}" in |
2213 y | ye | yes ) val=gtk ;; | 2655 y | ye | yes ) val=gtk ;; |
2214 n | no ) val=no ;; | 2656 n | no ) val=no ;; |
2215 l | lu | luc | luci | lucid ) val=lucid ;; | 2657 l | lu | luc | luci | lucid ) val=lucid ;; |
2216 a | at | ath | athe | athen | athena ) val=athena ;; | 2658 a | at | ath | athe | athen | athena ) val=athena ;; |
2217 m | mo | mot | moti | motif ) val=motif ;; | 2659 m | mo | mot | moti | motif ) val=motif ;; |
2218 g | gt | gtk ) val=gtk ;; | 2660 g | gt | gtk ) val=gtk ;; |
2219 * ) | 2661 * ) |
2220 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid; | 2662 as_fn_error "\`--with-x-toolkit=$withval' is invalid; |
2221 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. | 2663 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
2222 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5 | 2664 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 |
2223 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid; | |
2224 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. | |
2225 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;} | |
2226 { (exit 1); exit 1; }; } | |
2227 ;; | 2665 ;; |
2228 esac | 2666 esac |
2229 with_x_toolkit=$val | 2667 with_x_toolkit=$val |
2230 | 2668 |
2231 fi | 2669 fi |
2232 | 2670 |
2233 | 2671 |
2234 | 2672 |
2235 # Check whether --with-xpm was given. | 2673 # Check whether --with-xpm was given. |
2236 if test "${with_xpm+set}" = set; then | 2674 if test "${with_xpm+set}" = set; then : |
2237 withval=$with_xpm; | 2675 withval=$with_xpm; |
2238 else | 2676 else |
2239 with_xpm=yes | 2677 with_xpm=yes |
2240 fi | 2678 fi |
2241 | 2679 |
2242 | 2680 |
2243 # Check whether --with-jpeg was given. | 2681 # Check whether --with-jpeg was given. |
2244 if test "${with_jpeg+set}" = set; then | 2682 if test "${with_jpeg+set}" = set; then : |
2245 withval=$with_jpeg; | 2683 withval=$with_jpeg; |
2246 else | 2684 else |
2247 with_jpeg=yes | 2685 with_jpeg=yes |
2248 fi | 2686 fi |
2249 | 2687 |
2250 | 2688 |
2251 # Check whether --with-tiff was given. | 2689 # Check whether --with-tiff was given. |
2252 if test "${with_tiff+set}" = set; then | 2690 if test "${with_tiff+set}" = set; then : |
2253 withval=$with_tiff; | 2691 withval=$with_tiff; |
2254 else | 2692 else |
2255 with_tiff=yes | 2693 with_tiff=yes |
2256 fi | 2694 fi |
2257 | 2695 |
2258 | 2696 |
2259 # Check whether --with-gif was given. | 2697 # Check whether --with-gif was given. |
2260 if test "${with_gif+set}" = set; then | 2698 if test "${with_gif+set}" = set; then : |
2261 withval=$with_gif; | 2699 withval=$with_gif; |
2262 else | 2700 else |
2263 with_gif=yes | 2701 with_gif=yes |
2264 fi | 2702 fi |
2265 | 2703 |
2266 | 2704 |
2267 # Check whether --with-png was given. | 2705 # Check whether --with-png was given. |
2268 if test "${with_png+set}" = set; then | 2706 if test "${with_png+set}" = set; then : |
2269 withval=$with_png; | 2707 withval=$with_png; |
2270 else | 2708 else |
2271 with_png=yes | 2709 with_png=yes |
2272 fi | 2710 fi |
2273 | 2711 |
2274 | 2712 |
2275 # Check whether --with-rsvg was given. | 2713 # Check whether --with-rsvg was given. |
2276 if test "${with_rsvg+set}" = set; then | 2714 if test "${with_rsvg+set}" = set; then : |
2277 withval=$with_rsvg; | 2715 withval=$with_rsvg; |
2278 else | 2716 else |
2279 with_rsvg=yes | 2717 with_rsvg=yes |
2280 fi | 2718 fi |
2281 | 2719 |
2282 | 2720 |
2283 | 2721 |
2284 # Check whether --with-xft was given. | 2722 # Check whether --with-xft was given. |
2285 if test "${with_xft+set}" = set; then | 2723 if test "${with_xft+set}" = set; then : |
2286 withval=$with_xft; | 2724 withval=$with_xft; |
2287 else | 2725 else |
2288 with_xft=yes | 2726 with_xft=yes |
2289 fi | 2727 fi |
2290 | 2728 |
2291 | 2729 |
2292 # Check whether --with-libotf was given. | 2730 # Check whether --with-libotf was given. |
2293 if test "${with_libotf+set}" = set; then | 2731 if test "${with_libotf+set}" = set; then : |
2294 withval=$with_libotf; | 2732 withval=$with_libotf; |
2295 else | 2733 else |
2296 with_libotf=yes | 2734 with_libotf=yes |
2297 fi | 2735 fi |
2298 | 2736 |
2299 | 2737 |
2300 # Check whether --with-m17n-flt was given. | 2738 # Check whether --with-m17n-flt was given. |
2301 if test "${with_m17n_flt+set}" = set; then | 2739 if test "${with_m17n_flt+set}" = set; then : |
2302 withval=$with_m17n_flt; | 2740 withval=$with_m17n_flt; |
2303 else | 2741 else |
2304 with_m17n_flt=yes | 2742 with_m17n_flt=yes |
2305 fi | 2743 fi |
2306 | 2744 |
2307 | 2745 |
2308 | 2746 |
2309 # Check whether --with-toolkit-scroll-bars was given. | 2747 # Check whether --with-toolkit-scroll-bars was given. |
2310 if test "${with_toolkit_scroll_bars+set}" = set; then | 2748 if test "${with_toolkit_scroll_bars+set}" = set; then : |
2311 withval=$with_toolkit_scroll_bars; | 2749 withval=$with_toolkit_scroll_bars; |
2312 else | 2750 else |
2313 with_toolkit_scroll_bars=yes | 2751 with_toolkit_scroll_bars=yes |
2314 fi | 2752 fi |
2315 | 2753 |
2316 | 2754 |
2317 # Check whether --with-xaw3d was given. | 2755 # Check whether --with-xaw3d was given. |
2318 if test "${with_xaw3d+set}" = set; then | 2756 if test "${with_xaw3d+set}" = set; then : |
2319 withval=$with_xaw3d; | 2757 withval=$with_xaw3d; |
2320 else | 2758 else |
2321 with_xaw3d=yes | 2759 with_xaw3d=yes |
2322 fi | 2760 fi |
2323 | 2761 |
2324 | 2762 |
2325 # Check whether --with-xim was given. | 2763 # Check whether --with-xim was given. |
2326 if test "${with_xim+set}" = set; then | 2764 if test "${with_xim+set}" = set; then : |
2327 withval=$with_xim; | 2765 withval=$with_xim; |
2328 else | 2766 else |
2329 with_xim=yes | 2767 with_xim=yes |
2330 fi | 2768 fi |
2331 | 2769 |
2332 | 2770 |
2333 # Check whether --with-ns was given. | 2771 # Check whether --with-ns was given. |
2334 if test "${with_ns+set}" = set; then | 2772 if test "${with_ns+set}" = set; then : |
2335 withval=$with_ns; | 2773 withval=$with_ns; |
2336 else | 2774 else |
2337 with_ns=no | 2775 with_ns=no |
2338 fi | 2776 fi |
2339 | 2777 |
2340 | 2778 |
2341 | 2779 |
2342 # Check whether --with-gpm was given. | 2780 # Check whether --with-gpm was given. |
2343 if test "${with_gpm+set}" = set; then | 2781 if test "${with_gpm+set}" = set; then : |
2344 withval=$with_gpm; | 2782 withval=$with_gpm; |
2345 else | 2783 else |
2346 with_gpm=yes | 2784 with_gpm=yes |
2347 fi | 2785 fi |
2348 | 2786 |
2349 | 2787 |
2350 # Check whether --with-dbus was given. | 2788 # Check whether --with-dbus was given. |
2351 if test "${with_dbus+set}" = set; then | 2789 if test "${with_dbus+set}" = set; then : |
2352 withval=$with_dbus; | 2790 withval=$with_dbus; |
2353 else | 2791 else |
2354 with_dbus=yes | 2792 with_dbus=yes |
2355 fi | 2793 fi |
2356 | 2794 |
2357 | 2795 |
2358 # Check whether --with-gconf was given. | 2796 # Check whether --with-gconf was given. |
2359 if test "${with_gconf+set}" = set; then | 2797 if test "${with_gconf+set}" = set; then : |
2360 withval=$with_gconf; | 2798 withval=$with_gconf; |
2361 else | 2799 else |
2362 with_gconf=yes | 2800 with_gconf=yes |
2363 fi | 2801 fi |
2364 | 2802 |
2365 | 2803 |
2366 # Check whether --with-selinux was given. | 2804 # Check whether --with-selinux was given. |
2367 if test "${with_selinux+set}" = set; then | 2805 if test "${with_selinux+set}" = set; then : |
2368 withval=$with_selinux; | 2806 withval=$with_selinux; |
2369 else | 2807 else |
2370 with_selinux=yes | 2808 with_selinux=yes |
2371 fi | 2809 fi |
2372 | 2810 |
2373 | 2811 |
2374 ## For the times when you want to build Emacs but don't have | 2812 ## For the times when you want to build Emacs but don't have |
2375 ## a suitable makeinfo, and can live without the manuals. | 2813 ## a suitable makeinfo, and can live without the manuals. |
2376 | 2814 |
2377 # Check whether --with-makeinfo was given. | 2815 # Check whether --with-makeinfo was given. |
2378 if test "${with_makeinfo+set}" = set; then | 2816 if test "${with_makeinfo+set}" = set; then : |
2379 withval=$with_makeinfo; | 2817 withval=$with_makeinfo; |
2380 else | 2818 else |
2381 with_makeinfo=yes | 2819 with_makeinfo=yes |
2382 fi | 2820 fi |
2383 | 2821 |
2384 | 2822 |
2385 | 2823 |
2386 # Check whether --with-pkg-config-prog was given. | 2824 # Check whether --with-pkg-config-prog was given. |
2387 if test "${with_pkg_config_prog+set}" = set; then | 2825 if test "${with_pkg_config_prog+set}" = set; then : |
2388 withval=$with_pkg_config_prog; | 2826 withval=$with_pkg_config_prog; |
2389 fi | 2827 fi |
2390 | 2828 |
2391 if test "X${with_pkg_config_prog}" != X; then | 2829 if test "X${with_pkg_config_prog}" != X; then |
2392 if test "${with_pkg_config_prog}" != yes; then | 2830 if test "${with_pkg_config_prog}" != yes; then |
2395 fi | 2833 fi |
2396 | 2834 |
2397 CRT_DIR= | 2835 CRT_DIR= |
2398 | 2836 |
2399 # Check whether --with-crt-dir was given. | 2837 # Check whether --with-crt-dir was given. |
2400 if test "${with_crt_dir+set}" = set; then | 2838 if test "${with_crt_dir+set}" = set; then : |
2401 withval=$with_crt_dir; | 2839 withval=$with_crt_dir; |
2402 fi | 2840 fi |
2403 | 2841 |
2404 CRT_DIR="${with_crt_dir}" | 2842 CRT_DIR="${with_crt_dir}" |
2405 | 2843 |
2406 | 2844 |
2407 # Check whether --with-gnustep-conf was given. | 2845 # Check whether --with-gnustep-conf was given. |
2408 if test "${with_gnustep_conf+set}" = set; then | 2846 if test "${with_gnustep_conf+set}" = set; then : |
2409 withval=$with_gnustep_conf; | 2847 withval=$with_gnustep_conf; |
2410 fi | 2848 fi |
2411 | 2849 |
2412 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \ | 2850 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \ |
2413 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}" | 2851 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}" |
2414 test "X$GNUSTEP_CONFIG_FILE" = "X" && \ | 2852 test "X$GNUSTEP_CONFIG_FILE" = "X" && \ |
2415 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf | 2853 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf |
2416 | 2854 |
2417 # Check whether --enable-ns-self-contained was given. | 2855 # Check whether --enable-ns-self-contained was given. |
2418 if test "${enable_ns_self_contained+set}" = set; then | 2856 if test "${enable_ns_self_contained+set}" = set; then : |
2419 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval | 2857 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval |
2420 else | 2858 else |
2421 EN_NS_SELF_CONTAINED=yes | 2859 EN_NS_SELF_CONTAINED=yes |
2422 fi | 2860 fi |
2423 | 2861 |
2424 | 2862 |
2425 # Check whether --enable-asserts was given. | 2863 # Check whether --enable-asserts was given. |
2426 if test "${enable_asserts+set}" = set; then | 2864 if test "${enable_asserts+set}" = set; then : |
2427 enableval=$enable_asserts; USE_XASSERTS=$enableval | 2865 enableval=$enable_asserts; USE_XASSERTS=$enableval |
2428 else | 2866 else |
2429 USE_XASSERTS=no | 2867 USE_XASSERTS=no |
2430 fi | 2868 fi |
2431 | 2869 |
2432 | 2870 |
2433 # Check whether --enable-maintainer-mode was given. | 2871 # Check whether --enable-maintainer-mode was given. |
2434 if test "${enable_maintainer_mode+set}" = set; then | 2872 if test "${enable_maintainer_mode+set}" = set; then : |
2435 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | 2873 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2436 else | 2874 else |
2437 USE_MAINTAINER_MODE=no | 2875 USE_MAINTAINER_MODE=no |
2438 fi | 2876 fi |
2439 | 2877 |
2443 MAINT=# | 2881 MAINT=# |
2444 fi | 2882 fi |
2445 | 2883 |
2446 | 2884 |
2447 # Check whether --enable-locallisppath was given. | 2885 # Check whether --enable-locallisppath was given. |
2448 if test "${enable_locallisppath+set}" = set; then | 2886 if test "${enable_locallisppath+set}" = set; then : |
2449 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then | 2887 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then |
2450 locallisppath= | 2888 locallisppath= |
2451 elif test "${enableval}" != "yes"; then | 2889 elif test "${enableval}" != "yes"; then |
2452 locallisppath=${enableval} | 2890 locallisppath=${enableval} |
2453 fi | 2891 fi |
2454 fi | 2892 fi |
2455 | 2893 |
2456 | 2894 |
2457 # Check whether --enable-checking was given. | 2895 # Check whether --enable-checking was given. |
2458 if test "${enable_checking+set}" = set; then | 2896 if test "${enable_checking+set}" = set; then : |
2459 enableval=$enable_checking; ac_checking_flags="${enableval}" | 2897 enableval=$enable_checking; ac_checking_flags="${enableval}" |
2460 fi | 2898 fi |
2461 | 2899 |
2462 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," | 2900 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," |
2463 for check in $ac_checking_flags | 2901 for check in $ac_checking_flags |
2481 stringbytes) ac_gc_check_stringbytes=1 ;; | 2919 stringbytes) ac_gc_check_stringbytes=1 ;; |
2482 stringoverrun) ac_gc_check_string_overrun=1 ;; | 2920 stringoverrun) ac_gc_check_string_overrun=1 ;; |
2483 stringfreelist) ac_gc_check_string_free_list=1 ;; | 2921 stringfreelist) ac_gc_check_string_free_list=1 ;; |
2484 xmallocoverrun) ac_xmalloc_overrun=1 ;; | 2922 xmallocoverrun) ac_xmalloc_overrun=1 ;; |
2485 conslist) ac_gc_check_cons_list=1 ;; | 2923 conslist) ac_gc_check_cons_list=1 ;; |
2486 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5 | 2924 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;; |
2487 $as_echo "$as_me: error: unknown check category $check" >&2;} | |
2488 { (exit 1); exit 1; }; } ;; | |
2489 esac | 2925 esac |
2490 done | 2926 done |
2491 IFS="$ac_save_IFS" | 2927 IFS="$ac_save_IFS" |
2492 | 2928 |
2493 if test x$ac_enable_checking != x ; then | 2929 if test x$ac_enable_checking != x ; then |
2494 | 2930 |
2495 cat >>confdefs.h <<\_ACEOF | 2931 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h |
2496 #define ENABLE_CHECKING 1 | |
2497 _ACEOF | |
2498 | 2932 |
2499 fi | 2933 fi |
2500 if test x$ac_gc_check_stringbytes != x ; then | 2934 if test x$ac_gc_check_stringbytes != x ; then |
2501 | 2935 |
2502 cat >>confdefs.h <<\_ACEOF | 2936 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h |
2503 #define GC_CHECK_STRING_BYTES 1 | |
2504 _ACEOF | |
2505 | 2937 |
2506 fi | 2938 fi |
2507 if test x$ac_gc_check_stringoverrun != x ; then | 2939 if test x$ac_gc_check_stringoverrun != x ; then |
2508 | 2940 |
2509 cat >>confdefs.h <<\_ACEOF | 2941 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h |
2510 #define GC_CHECK_STRING_OVERRUN 1 | |
2511 _ACEOF | |
2512 | 2942 |
2513 fi | 2943 fi |
2514 if test x$ac_gc_check_string_free_list != x ; then | 2944 if test x$ac_gc_check_string_free_list != x ; then |
2515 | 2945 |
2516 cat >>confdefs.h <<\_ACEOF | 2946 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h |
2517 #define GC_CHECK_STRING_FREE_LIST 1 | |
2518 _ACEOF | |
2519 | 2947 |
2520 fi | 2948 fi |
2521 if test x$ac_xmalloc_overrun != x ; then | 2949 if test x$ac_xmalloc_overrun != x ; then |
2522 | 2950 |
2523 cat >>confdefs.h <<\_ACEOF | 2951 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h |
2524 #define XMALLOC_OVERRUN_CHECK 1 | |
2525 _ACEOF | |
2526 | 2952 |
2527 fi | 2953 fi |
2528 if test x$ac_gc_check_cons_list != x ; then | 2954 if test x$ac_gc_check_cons_list != x ; then |
2529 | 2955 |
2530 cat >>confdefs.h <<\_ACEOF | 2956 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h |
2531 #define GC_CHECK_CONS_LIST 1 | |
2532 _ACEOF | |
2533 | 2957 |
2534 fi | 2958 fi |
2535 | 2959 |
2536 # Check whether --enable-profiling was given. | 2960 # Check whether --enable-profiling was given. |
2537 if test "${enable_profiling+set}" = set; then | 2961 if test "${enable_profiling+set}" = set; then : |
2538 enableval=$enable_profiling; ac_enable_profiling="${enableval}" | 2962 enableval=$enable_profiling; ac_enable_profiling="${enableval}" |
2539 fi | 2963 fi |
2540 | 2964 |
2541 if test x$ac_enable_profiling != x ; then | 2965 if test x$ac_enable_profiling != x ; then |
2542 PROFILING_CFLAGS="-DPROFILING=1 -pg" | 2966 PROFILING_CFLAGS="-DPROFILING=1 -pg" |
2545 PROFILING_CFLAGS= | 2969 PROFILING_CFLAGS= |
2546 PROFILING_LDFLAGS= | 2970 PROFILING_LDFLAGS= |
2547 fi | 2971 fi |
2548 | 2972 |
2549 # Check whether --enable-autodepend was given. | 2973 # Check whether --enable-autodepend was given. |
2550 if test "${enable_autodepend+set}" = set; then | 2974 if test "${enable_autodepend+set}" = set; then : |
2551 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" | 2975 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" |
2552 else | 2976 else |
2553 ac_enable_autodepend=yes | 2977 ac_enable_autodepend=yes |
2554 fi | 2978 fi |
2555 | 2979 |
2579 esac | 3003 esac |
2580 | 3004 |
2581 #### Check if the source directory already has a configured system in it. | 3005 #### Check if the source directory already has a configured system in it. |
2582 if test `pwd` != `(cd ${srcdir} && pwd)` \ | 3006 if test `pwd` != `(cd ${srcdir} && pwd)` \ |
2583 && test -f "${srcdir}/src/config.h" ; then | 3007 && test -f "${srcdir}/src/config.h" ; then |
2584 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used | 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used |
2585 as a build directory right now; it has been configured in its own | 3009 as a build directory right now; it has been configured in its own |
2586 right. To configure in another directory as well, you MUST | 3010 right. To configure in another directory as well, you MUST |
2587 use GNU make. If you do not have GNU make, then you must | 3011 use GNU make. If you do not have GNU make, then you must |
2588 now do \`make distclean' in ${srcdir}, | 3012 now do \`make distclean' in ${srcdir}, |
2589 and then run $0 again." >&5 | 3013 and then run $0 again." >&5 |
2600 | 3024 |
2601 ### Canonicalize the configuration name. | 3025 ### Canonicalize the configuration name. |
2602 | 3026 |
2603 ac_aux_dir= | 3027 ac_aux_dir= |
2604 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 3028 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2605 if test -f "$ac_dir/install-sh"; then | 3029 for ac_t in install-sh install.sh shtool; do |
2606 ac_aux_dir=$ac_dir | 3030 if test -f "$ac_dir/$ac_t"; then |
2607 ac_install_sh="$ac_aux_dir/install-sh -c" | 3031 ac_aux_dir=$ac_dir |
2608 break | 3032 ac_install_sh="$ac_aux_dir/$ac_t -c" |
2609 elif test -f "$ac_dir/install.sh"; then | 3033 break 2 |
2610 ac_aux_dir=$ac_dir | 3034 fi |
2611 ac_install_sh="$ac_aux_dir/install.sh -c" | 3035 done |
2612 break | |
2613 elif test -f "$ac_dir/shtool"; then | |
2614 ac_aux_dir=$ac_dir | |
2615 ac_install_sh="$ac_aux_dir/shtool install -c" | |
2616 break | |
2617 fi | |
2618 done | 3036 done |
2619 if test -z "$ac_aux_dir"; then | 3037 if test -z "$ac_aux_dir"; then |
2620 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | 3038 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
2621 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2622 { (exit 1); exit 1; }; } | |
2623 fi | 3039 fi |
2624 | 3040 |
2625 # These three variables are undocumented and unsupported, | 3041 # These three variables are undocumented and unsupported, |
2626 # and are intended to be withdrawn in a future Autoconf release. | 3042 # and are intended to be withdrawn in a future Autoconf release. |
2627 # They can cause serious problems if a builder's source tree is in a directory | 3043 # They can cause serious problems if a builder's source tree is in a directory |
2631 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | 3047 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2632 | 3048 |
2633 | 3049 |
2634 # Make sure we can run config.sub. | 3050 # Make sure we can run config.sub. |
2635 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 3051 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2636 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | 3052 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
2637 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | 3053 |
2638 { (exit 1); exit 1; }; } | 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2639 | |
2640 { $as_echo "$as_me:$LINENO: checking build system type" >&5 | |
2641 $as_echo_n "checking build system type... " >&6; } | 3055 $as_echo_n "checking build system type... " >&6; } |
2642 if test "${ac_cv_build+set}" = set; then | 3056 if test "${ac_cv_build+set}" = set; then : |
2643 $as_echo_n "(cached) " >&6 | 3057 $as_echo_n "(cached) " >&6 |
2644 else | 3058 else |
2645 ac_build_alias=$build_alias | 3059 ac_build_alias=$build_alias |
2646 test "x$ac_build_alias" = x && | 3060 test "x$ac_build_alias" = x && |
2647 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 3061 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
2648 test "x$ac_build_alias" = x && | 3062 test "x$ac_build_alias" = x && |
2649 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | 3063 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
2650 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2651 { (exit 1); exit 1; }; } | |
2652 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 3064 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2653 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | 3065 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
2654 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | 3066 |
2655 { (exit 1); exit 1; }; } | 3067 fi |
2656 | 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2657 fi | |
2658 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
2659 $as_echo "$ac_cv_build" >&6; } | 3069 $as_echo "$ac_cv_build" >&6; } |
2660 case $ac_cv_build in | 3070 case $ac_cv_build in |
2661 *-*-*) ;; | 3071 *-*-*) ;; |
2662 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | 3072 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
2663 $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
2664 { (exit 1); exit 1; }; };; | |
2665 esac | 3073 esac |
2666 build=$ac_cv_build | 3074 build=$ac_cv_build |
2667 ac_save_IFS=$IFS; IFS='-' | 3075 ac_save_IFS=$IFS; IFS='-' |
2668 set x $ac_cv_build | 3076 set x $ac_cv_build |
2669 shift | 3077 shift |
2675 build_os=$* | 3083 build_os=$* |
2676 IFS=$ac_save_IFS | 3084 IFS=$ac_save_IFS |
2677 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 3085 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
2678 | 3086 |
2679 | 3087 |
2680 { $as_echo "$as_me:$LINENO: checking host system type" >&5 | 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2681 $as_echo_n "checking host system type... " >&6; } | 3089 $as_echo_n "checking host system type... " >&6; } |
2682 if test "${ac_cv_host+set}" = set; then | 3090 if test "${ac_cv_host+set}" = set; then : |
2683 $as_echo_n "(cached) " >&6 | 3091 $as_echo_n "(cached) " >&6 |
2684 else | 3092 else |
2685 if test "x$host_alias" = x; then | 3093 if test "x$host_alias" = x; then |
2686 ac_cv_host=$ac_cv_build | 3094 ac_cv_host=$ac_cv_build |
2687 else | 3095 else |
2688 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 3096 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2689 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | 3097 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
2690 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | 3098 fi |
2691 { (exit 1); exit 1; }; } | 3099 |
2692 fi | 3100 fi |
2693 | 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2694 fi | |
2695 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
2696 $as_echo "$ac_cv_host" >&6; } | 3102 $as_echo "$ac_cv_host" >&6; } |
2697 case $ac_cv_host in | 3103 case $ac_cv_host in |
2698 *-*-*) ;; | 3104 *-*-*) ;; |
2699 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | 3105 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
2700 $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
2701 { (exit 1); exit 1; }; };; | |
2702 esac | 3106 esac |
2703 host=$ac_cv_host | 3107 host=$ac_cv_host |
2704 ac_save_IFS=$IFS; IFS='-' | 3108 ac_save_IFS=$IFS; IFS='-' |
2705 set x $ac_cv_host | 3109 set x $ac_cv_host |
2706 shift | 3110 shift |
2990 fi | 3394 fi |
2991 | 3395 |
2992 | 3396 |
2993 | 3397 |
2994 if test $unported = yes; then | 3398 if test $unported = yes; then |
2995 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. | 3399 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems. |
2996 Check \`etc/MACHINES' for recognized configuration names." >&5 | 3400 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 |
2997 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2998 Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2999 { (exit 1); exit 1; }; } | |
3000 fi | 3401 fi |
3001 | 3402 |
3002 machfile="m/${machine}.h" | 3403 machfile="m/${machine}.h" |
3003 opsysfile="s/${opsys}.h" | 3404 opsysfile="s/${opsys}.h" |
3004 | 3405 |
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3017 if test -n "$ac_tool_prefix"; then | 3418 if test -n "$ac_tool_prefix"; then |
3018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 3419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3019 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 3420 set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3021 $as_echo_n "checking for $ac_word... " >&6; } | 3422 $as_echo_n "checking for $ac_word... " >&6; } |
3022 if test "${ac_cv_prog_CC+set}" = set; then | 3423 if test "${ac_cv_prog_CC+set}" = set; then : |
3023 $as_echo_n "(cached) " >&6 | 3424 $as_echo_n "(cached) " >&6 |
3024 else | 3425 else |
3025 if test -n "$CC"; then | 3426 if test -n "$CC"; then |
3026 ac_cv_prog_CC="$CC" # Let the user override the test. | 3427 ac_cv_prog_CC="$CC" # Let the user override the test. |
3027 else | 3428 else |
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3029 for as_dir in $PATH | 3430 for as_dir in $PATH |
3030 do | 3431 do |
3031 IFS=$as_save_IFS | 3432 IFS=$as_save_IFS |
3032 test -z "$as_dir" && as_dir=. | 3433 test -z "$as_dir" && as_dir=. |
3033 for ac_exec_ext in '' $ac_executable_extensions; do | 3434 for ac_exec_ext in '' $ac_executable_extensions; do |
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 3435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3035 ac_cv_prog_CC="${ac_tool_prefix}gcc" | 3436 ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3037 break 2 | 3438 break 2 |
3038 fi | 3439 fi |
3039 done | 3440 done |
3040 done | 3441 done |
3041 IFS=$as_save_IFS | 3442 IFS=$as_save_IFS |
3042 | 3443 |
3043 fi | 3444 fi |
3044 fi | 3445 fi |
3045 CC=$ac_cv_prog_CC | 3446 CC=$ac_cv_prog_CC |
3046 if test -n "$CC"; then | 3447 if test -n "$CC"; then |
3047 { $as_echo "$as_me:$LINENO: result: $CC" >&5 | 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3048 $as_echo "$CC" >&6; } | 3449 $as_echo "$CC" >&6; } |
3049 else | 3450 else |
3050 { $as_echo "$as_me:$LINENO: result: no" >&5 | 3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3051 $as_echo "no" >&6; } | 3452 $as_echo "no" >&6; } |
3052 fi | 3453 fi |
3053 | 3454 |
3054 | 3455 |
3055 fi | 3456 fi |
3056 if test -z "$ac_cv_prog_CC"; then | 3457 if test -z "$ac_cv_prog_CC"; then |
3057 ac_ct_CC=$CC | 3458 ac_ct_CC=$CC |
3058 # Extract the first word of "gcc", so it can be a program name with args. | 3459 # Extract the first word of "gcc", so it can be a program name with args. |
3059 set dummy gcc; ac_word=$2 | 3460 set dummy gcc; ac_word=$2 |
3060 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3061 $as_echo_n "checking for $ac_word... " >&6; } | 3462 $as_echo_n "checking for $ac_word... " >&6; } |
3062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 3463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
3063 $as_echo_n "(cached) " >&6 | 3464 $as_echo_n "(cached) " >&6 |
3064 else | 3465 else |
3065 if test -n "$ac_ct_CC"; then | 3466 if test -n "$ac_ct_CC"; then |
3066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 3467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3067 else | 3468 else |
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3069 for as_dir in $PATH | 3470 for as_dir in $PATH |
3070 do | 3471 do |
3071 IFS=$as_save_IFS | 3472 IFS=$as_save_IFS |
3072 test -z "$as_dir" && as_dir=. | 3473 test -z "$as_dir" && as_dir=. |
3073 for ac_exec_ext in '' $ac_executable_extensions; do | 3474 for ac_exec_ext in '' $ac_executable_extensions; do |
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3075 ac_cv_prog_ac_ct_CC="gcc" | 3476 ac_cv_prog_ac_ct_CC="gcc" |
3076 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3077 break 2 | 3478 break 2 |
3078 fi | 3479 fi |
3079 done | 3480 done |
3080 done | 3481 done |
3081 IFS=$as_save_IFS | 3482 IFS=$as_save_IFS |
3082 | 3483 |
3083 fi | 3484 fi |
3084 fi | 3485 fi |
3085 ac_ct_CC=$ac_cv_prog_ac_ct_CC | 3486 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3086 if test -n "$ac_ct_CC"; then | 3487 if test -n "$ac_ct_CC"; then |
3087 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3088 $as_echo "$ac_ct_CC" >&6; } | 3489 $as_echo "$ac_ct_CC" >&6; } |
3089 else | 3490 else |
3090 { $as_echo "$as_me:$LINENO: result: no" >&5 | 3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3091 $as_echo "no" >&6; } | 3492 $as_echo "no" >&6; } |
3092 fi | 3493 fi |
3093 | 3494 |
3094 if test "x$ac_ct_CC" = x; then | 3495 if test "x$ac_ct_CC" = x; then |
3095 CC="" | 3496 CC="" |
3096 else | 3497 else |
3097 case $cross_compiling:$ac_tool_warned in | 3498 case $cross_compiling:$ac_tool_warned in |
3098 yes:) | 3499 yes:) |
3099 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3100 whose name does not start with the host triplet. If you think this | 3501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3101 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3102 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3103 whose name does not start with the host triplet. If you think this | |
3104 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3105 ac_tool_warned=yes ;; | 3502 ac_tool_warned=yes ;; |
3106 esac | 3503 esac |
3107 CC=$ac_ct_CC | 3504 CC=$ac_ct_CC |
3108 fi | 3505 fi |
3109 else | 3506 else |
3112 | 3509 |
3113 if test -z "$CC"; then | 3510 if test -z "$CC"; then |
3114 if test -n "$ac_tool_prefix"; then | 3511 if test -n "$ac_tool_prefix"; then |
3115 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 3512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3116 set dummy ${ac_tool_prefix}cc; ac_word=$2 | 3513 set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3117 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3118 $as_echo_n "checking for $ac_word... " >&6; } | 3515 $as_echo_n "checking for $ac_word... " >&6; } |
3119 if test "${ac_cv_prog_CC+set}" = set; then | 3516 if test "${ac_cv_prog_CC+set}" = set; then : |
3120 $as_echo_n "(cached) " >&6 | 3517 $as_echo_n "(cached) " >&6 |
3121 else | 3518 else |
3122 if test -n "$CC"; then | 3519 if test -n "$CC"; then |
3123 ac_cv_prog_CC="$CC" # Let the user override the test. | 3520 ac_cv_prog_CC="$CC" # Let the user override the test. |
3124 else | 3521 else |
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3126 for as_dir in $PATH | 3523 for as_dir in $PATH |
3127 do | 3524 do |
3128 IFS=$as_save_IFS | 3525 IFS=$as_save_IFS |
3129 test -z "$as_dir" && as_dir=. | 3526 test -z "$as_dir" && as_dir=. |
3130 for ac_exec_ext in '' $ac_executable_extensions; do | 3527 for ac_exec_ext in '' $ac_executable_extensions; do |
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3132 ac_cv_prog_CC="${ac_tool_prefix}cc" | 3529 ac_cv_prog_CC="${ac_tool_prefix}cc" |
3133 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3134 break 2 | 3531 break 2 |
3135 fi | 3532 fi |
3136 done | 3533 done |
3137 done | 3534 done |
3138 IFS=$as_save_IFS | 3535 IFS=$as_save_IFS |
3139 | 3536 |
3140 fi | 3537 fi |
3141 fi | 3538 fi |
3142 CC=$ac_cv_prog_CC | 3539 CC=$ac_cv_prog_CC |
3143 if test -n "$CC"; then | 3540 if test -n "$CC"; then |
3144 { $as_echo "$as_me:$LINENO: result: $CC" >&5 | 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3145 $as_echo "$CC" >&6; } | 3542 $as_echo "$CC" >&6; } |
3146 else | 3543 else |
3147 { $as_echo "$as_me:$LINENO: result: no" >&5 | 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3148 $as_echo "no" >&6; } | 3545 $as_echo "no" >&6; } |
3149 fi | 3546 fi |
3150 | 3547 |
3151 | 3548 |
3152 fi | 3549 fi |
3153 fi | 3550 fi |
3154 if test -z "$CC"; then | 3551 if test -z "$CC"; then |
3155 # Extract the first word of "cc", so it can be a program name with args. | 3552 # Extract the first word of "cc", so it can be a program name with args. |
3156 set dummy cc; ac_word=$2 | 3553 set dummy cc; ac_word=$2 |
3157 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3158 $as_echo_n "checking for $ac_word... " >&6; } | 3555 $as_echo_n "checking for $ac_word... " >&6; } |
3159 if test "${ac_cv_prog_CC+set}" = set; then | 3556 if test "${ac_cv_prog_CC+set}" = set; then : |
3160 $as_echo_n "(cached) " >&6 | 3557 $as_echo_n "(cached) " >&6 |
3161 else | 3558 else |
3162 if test -n "$CC"; then | 3559 if test -n "$CC"; then |
3163 ac_cv_prog_CC="$CC" # Let the user override the test. | 3560 ac_cv_prog_CC="$CC" # Let the user override the test. |
3164 else | 3561 else |
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3167 for as_dir in $PATH | 3564 for as_dir in $PATH |
3168 do | 3565 do |
3169 IFS=$as_save_IFS | 3566 IFS=$as_save_IFS |
3170 test -z "$as_dir" && as_dir=. | 3567 test -z "$as_dir" && as_dir=. |
3171 for ac_exec_ext in '' $ac_executable_extensions; do | 3568 for ac_exec_ext in '' $ac_executable_extensions; do |
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 3569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3173 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 3570 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3174 ac_prog_rejected=yes | 3571 ac_prog_rejected=yes |
3175 continue | 3572 continue |
3176 fi | 3573 fi |
3177 ac_cv_prog_CC="cc" | 3574 ac_cv_prog_CC="cc" |
3178 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3179 break 2 | 3576 break 2 |
3180 fi | 3577 fi |
3181 done | 3578 done |
3182 done | 3579 done |
3183 IFS=$as_save_IFS | 3580 IFS=$as_save_IFS |
3184 | 3581 |
3185 if test $ac_prog_rejected = yes; then | 3582 if test $ac_prog_rejected = yes; then |
3186 # We found a bogon in the path, so make sure we never use it. | 3583 # We found a bogon in the path, so make sure we never use it. |
3187 set dummy $ac_cv_prog_CC | 3584 set dummy $ac_cv_prog_CC |
3196 fi | 3593 fi |
3197 fi | 3594 fi |
3198 fi | 3595 fi |
3199 CC=$ac_cv_prog_CC | 3596 CC=$ac_cv_prog_CC |
3200 if test -n "$CC"; then | 3597 if test -n "$CC"; then |
3201 { $as_echo "$as_me:$LINENO: result: $CC" >&5 | 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3202 $as_echo "$CC" >&6; } | 3599 $as_echo "$CC" >&6; } |
3203 else | 3600 else |
3204 { $as_echo "$as_me:$LINENO: result: no" >&5 | 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3205 $as_echo "no" >&6; } | 3602 $as_echo "no" >&6; } |
3206 fi | 3603 fi |
3207 | 3604 |
3208 | 3605 |
3209 fi | 3606 fi |
3211 if test -n "$ac_tool_prefix"; then | 3608 if test -n "$ac_tool_prefix"; then |
3212 for ac_prog in cl.exe | 3609 for ac_prog in cl.exe |
3213 do | 3610 do |
3214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 3611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 3612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3217 $as_echo_n "checking for $ac_word... " >&6; } | 3614 $as_echo_n "checking for $ac_word... " >&6; } |
3218 if test "${ac_cv_prog_CC+set}" = set; then | 3615 if test "${ac_cv_prog_CC+set}" = set; then : |
3219 $as_echo_n "(cached) " >&6 | 3616 $as_echo_n "(cached) " >&6 |
3220 else | 3617 else |
3221 if test -n "$CC"; then | 3618 if test -n "$CC"; then |
3222 ac_cv_prog_CC="$CC" # Let the user override the test. | 3619 ac_cv_prog_CC="$CC" # Let the user override the test. |
3223 else | 3620 else |
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3225 for as_dir in $PATH | 3622 for as_dir in $PATH |
3226 do | 3623 do |
3227 IFS=$as_save_IFS | 3624 IFS=$as_save_IFS |
3228 test -z "$as_dir" && as_dir=. | 3625 test -z "$as_dir" && as_dir=. |
3229 for ac_exec_ext in '' $ac_executable_extensions; do | 3626 for ac_exec_ext in '' $ac_executable_extensions; do |
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3231 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 3628 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3233 break 2 | 3630 break 2 |
3234 fi | 3631 fi |
3235 done | 3632 done |
3236 done | 3633 done |
3237 IFS=$as_save_IFS | 3634 IFS=$as_save_IFS |
3238 | 3635 |
3239 fi | 3636 fi |
3240 fi | 3637 fi |
3241 CC=$ac_cv_prog_CC | 3638 CC=$ac_cv_prog_CC |
3242 if test -n "$CC"; then | 3639 if test -n "$CC"; then |
3243 { $as_echo "$as_me:$LINENO: result: $CC" >&5 | 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3244 $as_echo "$CC" >&6; } | 3641 $as_echo "$CC" >&6; } |
3245 else | 3642 else |
3246 { $as_echo "$as_me:$LINENO: result: no" >&5 | 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3247 $as_echo "no" >&6; } | 3644 $as_echo "no" >&6; } |
3248 fi | 3645 fi |
3249 | 3646 |
3250 | 3647 |
3251 test -n "$CC" && break | 3648 test -n "$CC" && break |
3255 ac_ct_CC=$CC | 3652 ac_ct_CC=$CC |
3256 for ac_prog in cl.exe | 3653 for ac_prog in cl.exe |
3257 do | 3654 do |
3258 # Extract the first word of "$ac_prog", so it can be a program name with args. | 3655 # Extract the first word of "$ac_prog", so it can be a program name with args. |
3259 set dummy $ac_prog; ac_word=$2 | 3656 set dummy $ac_prog; ac_word=$2 |
3260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3261 $as_echo_n "checking for $ac_word... " >&6; } | 3658 $as_echo_n "checking for $ac_word... " >&6; } |
3262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 3659 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
3263 $as_echo_n "(cached) " >&6 | 3660 $as_echo_n "(cached) " >&6 |
3264 else | 3661 else |
3265 if test -n "$ac_ct_CC"; then | 3662 if test -n "$ac_ct_CC"; then |
3266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 3663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3267 else | 3664 else |
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3269 for as_dir in $PATH | 3666 for as_dir in $PATH |
3270 do | 3667 do |
3271 IFS=$as_save_IFS | 3668 IFS=$as_save_IFS |
3272 test -z "$as_dir" && as_dir=. | 3669 test -z "$as_dir" && as_dir=. |
3273 for ac_exec_ext in '' $ac_executable_extensions; do | 3670 for ac_exec_ext in '' $ac_executable_extensions; do |
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 3671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3275 ac_cv_prog_ac_ct_CC="$ac_prog" | 3672 ac_cv_prog_ac_ct_CC="$ac_prog" |
3276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3277 break 2 | 3674 break 2 |
3278 fi | 3675 fi |
3279 done | 3676 done |
3280 done | 3677 done |
3281 IFS=$as_save_IFS | 3678 IFS=$as_save_IFS |
3282 | 3679 |
3283 fi | 3680 fi |
3284 fi | 3681 fi |
3285 ac_ct_CC=$ac_cv_prog_ac_ct_CC | 3682 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3286 if test -n "$ac_ct_CC"; then | 3683 if test -n "$ac_ct_CC"; then |
3287 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3288 $as_echo "$ac_ct_CC" >&6; } | 3685 $as_echo "$ac_ct_CC" >&6; } |
3289 else | 3686 else |
3290 { $as_echo "$as_me:$LINENO: result: no" >&5 | 3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3291 $as_echo "no" >&6; } | 3688 $as_echo "no" >&6; } |
3292 fi | 3689 fi |
3293 | 3690 |
3294 | 3691 |
3295 test -n "$ac_ct_CC" && break | 3692 test -n "$ac_ct_CC" && break |
3298 if test "x$ac_ct_CC" = x; then | 3695 if test "x$ac_ct_CC" = x; then |
3299 CC="" | 3696 CC="" |
3300 else | 3697 else |
3301 case $cross_compiling:$ac_tool_warned in | 3698 case $cross_compiling:$ac_tool_warned in |
3302 yes:) | 3699 yes:) |
3303 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 3700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3304 whose name does not start with the host triplet. If you think this | 3701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3305 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3306 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3307 whose name does not start with the host triplet. If you think this | |
3308 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3309 ac_tool_warned=yes ;; | 3702 ac_tool_warned=yes ;; |
3310 esac | 3703 esac |
3311 CC=$ac_ct_CC | 3704 CC=$ac_ct_CC |
3312 fi | 3705 fi |
3313 fi | 3706 fi |
3314 | 3707 |
3315 fi | 3708 fi |
3316 | 3709 |
3317 | 3710 |
3318 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 3711 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3319 See \`config.log' for more details." >&5 | 3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3320 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH | 3713 as_fn_error "no acceptable C compiler found in \$PATH |
3321 See \`config.log' for more details." >&2;} | 3714 See \`config.log' for more details." "$LINENO" 5; } |
3322 { (exit 1); exit 1; }; } | |
3323 | 3715 |
3324 # Provide some information about the compiler. | 3716 # Provide some information about the compiler. |
3325 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 | 3717 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3326 set X $ac_compile | 3718 set X $ac_compile |
3327 ac_compiler=$2 | 3719 ac_compiler=$2 |
3328 { (ac_try="$ac_compiler --version >&5" | 3720 for ac_option in --version -v -V -qversion; do |
3721 { { ac_try="$ac_compiler $ac_option >&5" | |
3329 case "(($ac_try" in | 3722 case "(($ac_try" in |
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3331 *) ac_try_echo=$ac_try;; | 3724 *) ac_try_echo=$ac_try;; |
3332 esac | 3725 esac |
3333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3334 $as_echo "$ac_try_echo") >&5 | 3727 $as_echo "$ac_try_echo"; } >&5 |
3335 (eval "$ac_compiler --version >&5") 2>&5 | 3728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3336 ac_status=$? | 3729 ac_status=$? |
3337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 3730 if test -s conftest.err; then |
3338 (exit $ac_status); } | 3731 sed '10a\ |
3339 { (ac_try="$ac_compiler -v >&5" | 3732 ... rest of stderr output deleted ... |
3340 case "(($ac_try" in | 3733 10q' conftest.err >conftest.er1 |
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 3734 cat conftest.er1 >&5 |
3342 *) ac_try_echo=$ac_try;; | 3735 fi |
3343 esac | 3736 rm -f conftest.er1 conftest.err |
3344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3345 $as_echo "$ac_try_echo") >&5 | 3738 test $ac_status = 0; } |
3346 (eval "$ac_compiler -v >&5") 2>&5 | 3739 done |
3347 ac_status=$? | 3740 |
3348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3349 (exit $ac_status); } | |
3350 { (ac_try="$ac_compiler -V >&5" | |
3351 case "(($ac_try" in | |
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3353 *) ac_try_echo=$ac_try;; | |
3354 esac | |
3355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3356 $as_echo "$ac_try_echo") >&5 | |
3357 (eval "$ac_compiler -V >&5") 2>&5 | |
3358 ac_status=$? | |
3359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3360 (exit $ac_status); } | |
3361 | |
3362 cat >conftest.$ac_ext <<_ACEOF | |
3363 /* confdefs.h. */ | |
3364 _ACEOF | |
3365 cat confdefs.h >>conftest.$ac_ext | |
3366 cat >>conftest.$ac_ext <<_ACEOF | |
3367 /* end confdefs.h. */ | 3742 /* end confdefs.h. */ |
3368 | 3743 |
3369 int | 3744 int |
3370 main () | 3745 main () |
3371 { | 3746 { |
3377 ac_clean_files_save=$ac_clean_files | 3752 ac_clean_files_save=$ac_clean_files |
3378 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | 3753 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3379 # Try to create an executable without -o first, disregard a.out. | 3754 # Try to create an executable without -o first, disregard a.out. |
3380 # It will help us diagnose broken compilers, and finding out an intuition | 3755 # It will help us diagnose broken compilers, and finding out an intuition |
3381 # of exeext. | 3756 # of exeext. |
3382 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | 3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3383 $as_echo_n "checking for C compiler default output file name... " >&6; } | 3758 $as_echo_n "checking whether the C compiler works... " >&6; } |
3384 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 3759 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3385 | 3760 |
3386 # The possible output files: | 3761 # The possible output files: |
3387 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 3762 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3388 | 3763 |
3394 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 3769 * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3395 esac | 3770 esac |
3396 done | 3771 done |
3397 rm -f $ac_rmfiles | 3772 rm -f $ac_rmfiles |
3398 | 3773 |
3399 if { (ac_try="$ac_link_default" | 3774 if { { ac_try="$ac_link_default" |
3400 case "(($ac_try" in | 3775 case "(($ac_try" in |
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3402 *) ac_try_echo=$ac_try;; | 3777 *) ac_try_echo=$ac_try;; |
3403 esac | 3778 esac |
3404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3405 $as_echo "$ac_try_echo") >&5 | 3780 $as_echo "$ac_try_echo"; } >&5 |
3406 (eval "$ac_link_default") 2>&5 | 3781 (eval "$ac_link_default") 2>&5 |
3407 ac_status=$? | 3782 ac_status=$? |
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3409 (exit $ac_status); }; then | 3784 test $ac_status = 0; }; then : |
3410 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 3785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3411 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 3786 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3412 # in a Makefile. We should not override ac_cv_exeext if it was cached, | 3787 # in a Makefile. We should not override ac_cv_exeext if it was cached, |
3413 # so that the user can short-circuit this test for compilers unknown to | 3788 # so that the user can short-circuit this test for compilers unknown to |
3414 # Autoconf. | 3789 # Autoconf. |
3421 [ab].out ) | 3796 [ab].out ) |
3422 # We found the default executable, but exeext='' is most | 3797 # We found the default executable, but exeext='' is most |
3423 # certainly right. | 3798 # certainly right. |
3424 break;; | 3799 break;; |
3425 *.* ) | 3800 *.* ) |
3426 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 3801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3427 then :; else | 3802 then :; else |
3428 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 3803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3429 fi | 3804 fi |
3430 # We set ac_cv_exeext here because the later test for it is not | 3805 # We set ac_cv_exeext here because the later test for it is not |
3431 # safe: cross compilers may not add the suffix if given an `-o' | 3806 # safe: cross compilers may not add the suffix if given an `-o' |
3440 test "$ac_cv_exeext" = no && ac_cv_exeext= | 3815 test "$ac_cv_exeext" = no && ac_cv_exeext= |
3441 | 3816 |
3442 else | 3817 else |
3443 ac_file='' | 3818 ac_file='' |
3444 fi | 3819 fi |
3445 | 3820 if test -z "$ac_file"; then : |
3446 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | 3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3822 $as_echo "no" >&6; } | |
3823 $as_echo "$as_me: failed program was:" >&5 | |
3824 sed 's/^/| /' conftest.$ac_ext >&5 | |
3825 | |
3826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3828 { as_fn_set_status 77 | |
3829 as_fn_error "C compiler cannot create executables | |
3830 See \`config.log' for more details." "$LINENO" 5; }; } | |
3831 else | |
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3833 $as_echo "yes" >&6; } | |
3834 fi | |
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3836 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3447 $as_echo "$ac_file" >&6; } | 3838 $as_echo "$ac_file" >&6; } |
3448 if test -z "$ac_file"; then | |
3449 $as_echo "$as_me: failed program was:" >&5 | |
3450 sed 's/^/| /' conftest.$ac_ext >&5 | |
3451 | |
3452 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
3453 See \`config.log' for more details." >&5 | |
3454 $as_echo "$as_me: error: C compiler cannot create executables | |
3455 See \`config.log' for more details." >&2;} | |
3456 { (exit 77); exit 77; }; } | |
3457 fi | |
3458 | |
3459 ac_exeext=$ac_cv_exeext | 3839 ac_exeext=$ac_cv_exeext |
3460 | |
3461 # Check that the compiler produces executables we can run. If not, either | |
3462 # the compiler is broken, or we cross compile. | |
3463 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
3464 $as_echo_n "checking whether the C compiler works... " >&6; } | |
3465 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3466 # If not cross compiling, check that we can run a simple program. | |
3467 if test "$cross_compiling" != yes; then | |
3468 if { ac_try='./$ac_file' | |
3469 { (case "(($ac_try" in | |
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3471 *) ac_try_echo=$ac_try;; | |
3472 esac | |
3473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3474 $as_echo "$ac_try_echo") >&5 | |
3475 (eval "$ac_try") 2>&5 | |
3476 ac_status=$? | |
3477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3478 (exit $ac_status); }; }; then | |
3479 cross_compiling=no | |
3480 else | |
3481 if test "$cross_compiling" = maybe; then | |
3482 cross_compiling=yes | |
3483 else | |
3484 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3485 If you meant to cross compile, use \`--host'. | |
3486 See \`config.log' for more details." >&5 | |
3487 $as_echo "$as_me: error: cannot run C compiled programs. | |
3488 If you meant to cross compile, use \`--host'. | |
3489 See \`config.log' for more details." >&2;} | |
3490 { (exit 1); exit 1; }; } | |
3491 fi | |
3492 fi | |
3493 fi | |
3494 { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
3495 $as_echo "yes" >&6; } | |
3496 | 3840 |
3497 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | 3841 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3498 ac_clean_files=$ac_clean_files_save | 3842 ac_clean_files=$ac_clean_files_save |
3499 # Check that the compiler produces executables we can run. If not, either | 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3500 # the compiler is broken, or we cross compile. | |
3501 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
3502 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3503 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3504 $as_echo "$cross_compiling" >&6; } | |
3505 | |
3506 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3507 $as_echo_n "checking for suffix of executables... " >&6; } | 3844 $as_echo_n "checking for suffix of executables... " >&6; } |
3508 if { (ac_try="$ac_link" | 3845 if { { ac_try="$ac_link" |
3509 case "(($ac_try" in | 3846 case "(($ac_try" in |
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3511 *) ac_try_echo=$ac_try;; | 3848 *) ac_try_echo=$ac_try;; |
3512 esac | 3849 esac |
3513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3514 $as_echo "$ac_try_echo") >&5 | 3851 $as_echo "$ac_try_echo"; } >&5 |
3515 (eval "$ac_link") 2>&5 | 3852 (eval "$ac_link") 2>&5 |
3516 ac_status=$? | 3853 ac_status=$? |
3517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3518 (exit $ac_status); }; then | 3855 test $ac_status = 0; }; then : |
3519 # If both `conftest.exe' and `conftest' are `present' (well, observable) | 3856 # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3520 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | 3857 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3521 # work properly (i.e., refer to `conftest.exe'), while it won't with | 3858 # work properly (i.e., refer to `conftest.exe'), while it won't with |
3522 # `rm'. | 3859 # `rm'. |
3523 for ac_file in conftest.exe conftest conftest.*; do | 3860 for ac_file in conftest.exe conftest conftest.*; do |
3528 break;; | 3865 break;; |
3529 * ) break;; | 3866 * ) break;; |
3530 esac | 3867 esac |
3531 done | 3868 done |
3532 else | 3869 else |
3533 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | 3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3534 See \`config.log' for more details." >&5 | 3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3535 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | 3872 as_fn_error "cannot compute suffix of executables: cannot compile and link |
3536 See \`config.log' for more details." >&2;} | 3873 See \`config.log' for more details." "$LINENO" 5; } |
3537 { (exit 1); exit 1; }; } | 3874 fi |
3538 fi | 3875 rm -f conftest conftest$ac_cv_exeext |
3539 | 3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3540 rm -f conftest$ac_cv_exeext | |
3541 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3542 $as_echo "$ac_cv_exeext" >&6; } | 3877 $as_echo "$ac_cv_exeext" >&6; } |
3543 | 3878 |
3544 rm -f conftest.$ac_ext | 3879 rm -f conftest.$ac_ext |
3545 EXEEXT=$ac_cv_exeext | 3880 EXEEXT=$ac_cv_exeext |
3546 ac_exeext=$EXEEXT | 3881 ac_exeext=$EXEEXT |
3547 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 | 3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3548 $as_echo_n "checking for suffix of object files... " >&6; } | |
3549 if test "${ac_cv_objext+set}" = set; then | |
3550 $as_echo_n "(cached) " >&6 | |
3551 else | |
3552 cat >conftest.$ac_ext <<_ACEOF | |
3553 /* confdefs.h. */ | |
3554 _ACEOF | |
3555 cat confdefs.h >>conftest.$ac_ext | |
3556 cat >>conftest.$ac_ext <<_ACEOF | |
3557 /* end confdefs.h. */ | 3883 /* end confdefs.h. */ |
3558 | 3884 #include <stdio.h> |
3559 int | 3885 int |
3560 main () | 3886 main () |
3561 { | 3887 { |
3888 FILE *f = fopen ("conftest.out", "w"); | |
3889 return ferror (f) || fclose (f) != 0; | |
3562 | 3890 |
3563 ; | 3891 ; |
3564 return 0; | 3892 return 0; |
3565 } | 3893 } |
3566 _ACEOF | 3894 _ACEOF |
3567 rm -f conftest.o conftest.obj | 3895 ac_clean_files="$ac_clean_files conftest.out" |
3568 if { (ac_try="$ac_compile" | 3896 # Check that the compiler produces executables we can run. If not, either |
3897 # the compiler is broken, or we cross compile. | |
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3899 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3900 if test "$cross_compiling" != yes; then | |
3901 { { ac_try="$ac_link" | |
3569 case "(($ac_try" in | 3902 case "(($ac_try" in |
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3571 *) ac_try_echo=$ac_try;; | 3904 *) ac_try_echo=$ac_try;; |
3572 esac | 3905 esac |
3573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3574 $as_echo "$ac_try_echo") >&5 | 3907 $as_echo "$ac_try_echo"; } >&5 |
3908 (eval "$ac_link") 2>&5 | |
3909 ac_status=$? | |
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3911 test $ac_status = 0; } | |
3912 if { ac_try='./conftest$ac_cv_exeext' | |
3913 { { case "(($ac_try" in | |
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3915 *) ac_try_echo=$ac_try;; | |
3916 esac | |
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3918 $as_echo "$ac_try_echo"; } >&5 | |
3919 (eval "$ac_try") 2>&5 | |
3920 ac_status=$? | |
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3922 test $ac_status = 0; }; }; then | |
3923 cross_compiling=no | |
3924 else | |
3925 if test "$cross_compiling" = maybe; then | |
3926 cross_compiling=yes | |
3927 else | |
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3930 as_fn_error "cannot run C compiled programs. | |
3931 If you meant to cross compile, use \`--host'. | |
3932 See \`config.log' for more details." "$LINENO" 5; } | |
3933 fi | |
3934 fi | |
3935 fi | |
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3937 $as_echo "$cross_compiling" >&6; } | |
3938 | |
3939 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3940 ac_clean_files=$ac_clean_files_save | |
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3942 $as_echo_n "checking for suffix of object files... " >&6; } | |
3943 if test "${ac_cv_objext+set}" = set; then : | |
3944 $as_echo_n "(cached) " >&6 | |
3945 else | |
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3947 /* end confdefs.h. */ | |
3948 | |
3949 int | |
3950 main () | |
3951 { | |
3952 | |
3953 ; | |
3954 return 0; | |
3955 } | |
3956 _ACEOF | |
3957 rm -f conftest.o conftest.obj | |
3958 if { { ac_try="$ac_compile" | |
3959 case "(($ac_try" in | |
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3961 *) ac_try_echo=$ac_try;; | |
3962 esac | |
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3964 $as_echo "$ac_try_echo"; } >&5 | |
3575 (eval "$ac_compile") 2>&5 | 3965 (eval "$ac_compile") 2>&5 |
3576 ac_status=$? | 3966 ac_status=$? |
3577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3578 (exit $ac_status); }; then | 3968 test $ac_status = 0; }; then : |
3579 for ac_file in conftest.o conftest.obj conftest.*; do | 3969 for ac_file in conftest.o conftest.obj conftest.*; do |
3580 test -f "$ac_file" || continue; | 3970 test -f "$ac_file" || continue; |
3581 case $ac_file in | 3971 case $ac_file in |
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | 3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
3583 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 3973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3586 done | 3976 done |
3587 else | 3977 else |
3588 $as_echo "$as_me: failed program was:" >&5 | 3978 $as_echo "$as_me: failed program was:" >&5 |
3589 sed 's/^/| /' conftest.$ac_ext >&5 | 3979 sed 's/^/| /' conftest.$ac_ext >&5 |
3590 | 3980 |
3591 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | 3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3592 See \`config.log' for more details." >&5 | 3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3593 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile | 3983 as_fn_error "cannot compute suffix of object files: cannot compile |
3594 See \`config.log' for more details." >&2;} | 3984 See \`config.log' for more details." "$LINENO" 5; } |
3595 { (exit 1); exit 1; }; } | 3985 fi |
3596 fi | |
3597 | |
3598 rm -f conftest.$ac_cv_objext conftest.$ac_ext | 3986 rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3599 fi | 3987 fi |
3600 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | 3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3601 $as_echo "$ac_cv_objext" >&6; } | 3989 $as_echo "$ac_cv_objext" >&6; } |
3602 OBJEXT=$ac_cv_objext | 3990 OBJEXT=$ac_cv_objext |
3603 ac_objext=$OBJEXT | 3991 ac_objext=$OBJEXT |
3604 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3605 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 3993 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3606 if test "${ac_cv_c_compiler_gnu+set}" = set; then | 3994 if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
3607 $as_echo_n "(cached) " >&6 | 3995 $as_echo_n "(cached) " >&6 |
3608 else | 3996 else |
3609 cat >conftest.$ac_ext <<_ACEOF | 3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3610 /* confdefs.h. */ | |
3611 _ACEOF | |
3612 cat confdefs.h >>conftest.$ac_ext | |
3613 cat >>conftest.$ac_ext <<_ACEOF | |
3614 /* end confdefs.h. */ | 3998 /* end confdefs.h. */ |
3615 | 3999 |
3616 int | 4000 int |
3617 main () | 4001 main () |
3618 { | 4002 { |
3622 | 4006 |
3623 ; | 4007 ; |
3624 return 0; | 4008 return 0; |
3625 } | 4009 } |
3626 _ACEOF | 4010 _ACEOF |
3627 rm -f conftest.$ac_objext | 4011 if ac_fn_c_try_compile "$LINENO"; then : |
3628 if { (ac_try="$ac_compile" | |
3629 case "(($ac_try" in | |
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3631 *) ac_try_echo=$ac_try;; | |
3632 esac | |
3633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3634 $as_echo "$ac_try_echo") >&5 | |
3635 (eval "$ac_compile") 2>conftest.er1 | |
3636 ac_status=$? | |
3637 grep -v '^ *+' conftest.er1 >conftest.err | |
3638 rm -f conftest.er1 | |
3639 cat conftest.err >&5 | |
3640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3641 (exit $ac_status); } && { | |
3642 test -z "$ac_c_werror_flag" || | |
3643 test ! -s conftest.err | |
3644 } && test -s conftest.$ac_objext; then | |
3645 ac_compiler_gnu=yes | 4012 ac_compiler_gnu=yes |
3646 else | 4013 else |
3647 $as_echo "$as_me: failed program was:" >&5 | 4014 ac_compiler_gnu=no |
3648 sed 's/^/| /' conftest.$ac_ext >&5 | 4015 fi |
3649 | |
3650 ac_compiler_gnu=no | |
3651 fi | |
3652 | |
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3654 ac_cv_c_compiler_gnu=$ac_compiler_gnu | 4017 ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3655 | 4018 |
3656 fi | 4019 fi |
3657 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3658 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 4021 $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3659 if test $ac_compiler_gnu = yes; then | 4022 if test $ac_compiler_gnu = yes; then |
3660 GCC=yes | 4023 GCC=yes |
3661 else | 4024 else |
3662 GCC= | 4025 GCC= |
3663 fi | 4026 fi |
3664 ac_test_CFLAGS=${CFLAGS+set} | 4027 ac_test_CFLAGS=${CFLAGS+set} |
3665 ac_save_CFLAGS=$CFLAGS | 4028 ac_save_CFLAGS=$CFLAGS |
3666 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3667 $as_echo_n "checking whether $CC accepts -g... " >&6; } | 4030 $as_echo_n "checking whether $CC accepts -g... " >&6; } |
3668 if test "${ac_cv_prog_cc_g+set}" = set; then | 4031 if test "${ac_cv_prog_cc_g+set}" = set; then : |
3669 $as_echo_n "(cached) " >&6 | 4032 $as_echo_n "(cached) " >&6 |
3670 else | 4033 else |
3671 ac_save_c_werror_flag=$ac_c_werror_flag | 4034 ac_save_c_werror_flag=$ac_c_werror_flag |
3672 ac_c_werror_flag=yes | 4035 ac_c_werror_flag=yes |
3673 ac_cv_prog_cc_g=no | 4036 ac_cv_prog_cc_g=no |
3674 CFLAGS="-g" | 4037 CFLAGS="-g" |
3675 cat >conftest.$ac_ext <<_ACEOF | 4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3676 /* confdefs.h. */ | |
3677 _ACEOF | |
3678 cat confdefs.h >>conftest.$ac_ext | |
3679 cat >>conftest.$ac_ext <<_ACEOF | |
3680 /* end confdefs.h. */ | 4039 /* end confdefs.h. */ |
3681 | 4040 |
3682 int | 4041 int |
3683 main () | 4042 main () |
3684 { | 4043 { |
3685 | 4044 |
3686 ; | 4045 ; |
3687 return 0; | 4046 return 0; |
3688 } | 4047 } |
3689 _ACEOF | 4048 _ACEOF |
3690 rm -f conftest.$ac_objext | 4049 if ac_fn_c_try_compile "$LINENO"; then : |
3691 if { (ac_try="$ac_compile" | |
3692 case "(($ac_try" in | |
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3694 *) ac_try_echo=$ac_try;; | |
3695 esac | |
3696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3697 $as_echo "$ac_try_echo") >&5 | |
3698 (eval "$ac_compile") 2>conftest.er1 | |
3699 ac_status=$? | |
3700 grep -v '^ *+' conftest.er1 >conftest.err | |
3701 rm -f conftest.er1 | |
3702 cat conftest.err >&5 | |
3703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3704 (exit $ac_status); } && { | |
3705 test -z "$ac_c_werror_flag" || | |
3706 test ! -s conftest.err | |
3707 } && test -s conftest.$ac_objext; then | |
3708 ac_cv_prog_cc_g=yes | 4050 ac_cv_prog_cc_g=yes |
3709 else | 4051 else |
3710 $as_echo "$as_me: failed program was:" >&5 | 4052 CFLAGS="" |
3711 sed 's/^/| /' conftest.$ac_ext >&5 | 4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3712 | |
3713 CFLAGS="" | |
3714 cat >conftest.$ac_ext <<_ACEOF | |
3715 /* confdefs.h. */ | |
3716 _ACEOF | |
3717 cat confdefs.h >>conftest.$ac_ext | |
3718 cat >>conftest.$ac_ext <<_ACEOF | |
3719 /* end confdefs.h. */ | 4054 /* end confdefs.h. */ |
3720 | 4055 |
3721 int | 4056 int |
3722 main () | 4057 main () |
3723 { | 4058 { |
3724 | 4059 |
3725 ; | 4060 ; |
3726 return 0; | 4061 return 0; |
3727 } | 4062 } |
3728 _ACEOF | 4063 _ACEOF |
3729 rm -f conftest.$ac_objext | 4064 if ac_fn_c_try_compile "$LINENO"; then : |
3730 if { (ac_try="$ac_compile" | 4065 |
3731 case "(($ac_try" in | 4066 else |
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 4067 ac_c_werror_flag=$ac_save_c_werror_flag |
3733 *) ac_try_echo=$ac_try;; | |
3734 esac | |
3735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3736 $as_echo "$ac_try_echo") >&5 | |
3737 (eval "$ac_compile") 2>conftest.er1 | |
3738 ac_status=$? | |
3739 grep -v '^ *+' conftest.er1 >conftest.err | |
3740 rm -f conftest.er1 | |
3741 cat conftest.err >&5 | |
3742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3743 (exit $ac_status); } && { | |
3744 test -z "$ac_c_werror_flag" || | |
3745 test ! -s conftest.err | |
3746 } && test -s conftest.$ac_objext; then | |
3747 : | |
3748 else | |
3749 $as_echo "$as_me: failed program was:" >&5 | |
3750 sed 's/^/| /' conftest.$ac_ext >&5 | |
3751 | |
3752 ac_c_werror_flag=$ac_save_c_werror_flag | |
3753 CFLAGS="-g" | 4068 CFLAGS="-g" |
3754 cat >conftest.$ac_ext <<_ACEOF | 4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3755 /* confdefs.h. */ | |
3756 _ACEOF | |
3757 cat confdefs.h >>conftest.$ac_ext | |
3758 cat >>conftest.$ac_ext <<_ACEOF | |
3759 /* end confdefs.h. */ | 4070 /* end confdefs.h. */ |
3760 | 4071 |
3761 int | 4072 int |
3762 main () | 4073 main () |
3763 { | 4074 { |
3764 | 4075 |
3765 ; | 4076 ; |
3766 return 0; | 4077 return 0; |
3767 } | 4078 } |
3768 _ACEOF | 4079 _ACEOF |
3769 rm -f conftest.$ac_objext | 4080 if ac_fn_c_try_compile "$LINENO"; then : |
3770 if { (ac_try="$ac_compile" | |
3771 case "(($ac_try" in | |
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3773 *) ac_try_echo=$ac_try;; | |
3774 esac | |
3775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3776 $as_echo "$ac_try_echo") >&5 | |
3777 (eval "$ac_compile") 2>conftest.er1 | |
3778 ac_status=$? | |
3779 grep -v '^ *+' conftest.er1 >conftest.err | |
3780 rm -f conftest.er1 | |
3781 cat conftest.err >&5 | |
3782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3783 (exit $ac_status); } && { | |
3784 test -z "$ac_c_werror_flag" || | |
3785 test ! -s conftest.err | |
3786 } && test -s conftest.$ac_objext; then | |
3787 ac_cv_prog_cc_g=yes | 4081 ac_cv_prog_cc_g=yes |
3788 else | 4082 fi |
3789 $as_echo "$as_me: failed program was:" >&5 | |
3790 sed 's/^/| /' conftest.$ac_ext >&5 | |
3791 | |
3792 | |
3793 fi | |
3794 | |
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3796 fi | 4084 fi |
3797 | |
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3799 fi | 4086 fi |
3800 | |
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3802 ac_c_werror_flag=$ac_save_c_werror_flag | 4088 ac_c_werror_flag=$ac_save_c_werror_flag |
3803 fi | 4089 fi |
3804 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3805 $as_echo "$ac_cv_prog_cc_g" >&6; } | 4091 $as_echo "$ac_cv_prog_cc_g" >&6; } |
3806 if test "$ac_test_CFLAGS" = set; then | 4092 if test "$ac_test_CFLAGS" = set; then |
3807 CFLAGS=$ac_save_CFLAGS | 4093 CFLAGS=$ac_save_CFLAGS |
3808 elif test $ac_cv_prog_cc_g = yes; then | 4094 elif test $ac_cv_prog_cc_g = yes; then |
3809 if test "$GCC" = yes; then | 4095 if test "$GCC" = yes; then |
3816 CFLAGS="-O2" | 4102 CFLAGS="-O2" |
3817 else | 4103 else |
3818 CFLAGS= | 4104 CFLAGS= |
3819 fi | 4105 fi |
3820 fi | 4106 fi |
3821 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3822 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 4108 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3823 if test "${ac_cv_prog_cc_c89+set}" = set; then | 4109 if test "${ac_cv_prog_cc_c89+set}" = set; then : |
3824 $as_echo_n "(cached) " >&6 | 4110 $as_echo_n "(cached) " >&6 |
3825 else | 4111 else |
3826 ac_cv_prog_cc_c89=no | 4112 ac_cv_prog_cc_c89=no |
3827 ac_save_CC=$CC | 4113 ac_save_CC=$CC |
3828 cat >conftest.$ac_ext <<_ACEOF | 4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3829 /* confdefs.h. */ | |
3830 _ACEOF | |
3831 cat confdefs.h >>conftest.$ac_ext | |
3832 cat >>conftest.$ac_ext <<_ACEOF | |
3833 /* end confdefs.h. */ | 4115 /* end confdefs.h. */ |
3834 #include <stdarg.h> | 4116 #include <stdarg.h> |
3835 #include <stdio.h> | 4117 #include <stdio.h> |
3836 #include <sys/types.h> | 4118 #include <sys/types.h> |
3837 #include <sys/stat.h> | 4119 #include <sys/stat.h> |
3884 _ACEOF | 4166 _ACEOF |
3885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 4167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 4168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3887 do | 4169 do |
3888 CC="$ac_save_CC $ac_arg" | 4170 CC="$ac_save_CC $ac_arg" |
3889 rm -f conftest.$ac_objext | 4171 if ac_fn_c_try_compile "$LINENO"; then : |
3890 if { (ac_try="$ac_compile" | |
3891 case "(($ac_try" in | |
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3893 *) ac_try_echo=$ac_try;; | |
3894 esac | |
3895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3896 $as_echo "$ac_try_echo") >&5 | |
3897 (eval "$ac_compile") 2>conftest.er1 | |
3898 ac_status=$? | |
3899 grep -v '^ *+' conftest.er1 >conftest.err | |
3900 rm -f conftest.er1 | |
3901 cat conftest.err >&5 | |
3902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3903 (exit $ac_status); } && { | |
3904 test -z "$ac_c_werror_flag" || | |
3905 test ! -s conftest.err | |
3906 } && test -s conftest.$ac_objext; then | |
3907 ac_cv_prog_cc_c89=$ac_arg | 4172 ac_cv_prog_cc_c89=$ac_arg |
3908 else | 4173 fi |
3909 $as_echo "$as_me: failed program was:" >&5 | |
3910 sed 's/^/| /' conftest.$ac_ext >&5 | |
3911 | |
3912 | |
3913 fi | |
3914 | |
3915 rm -f core conftest.err conftest.$ac_objext | 4174 rm -f core conftest.err conftest.$ac_objext |
3916 test "x$ac_cv_prog_cc_c89" != "xno" && break | 4175 test "x$ac_cv_prog_cc_c89" != "xno" && break |
3917 done | 4176 done |
3918 rm -f conftest.$ac_ext | 4177 rm -f conftest.$ac_ext |
3919 CC=$ac_save_CC | 4178 CC=$ac_save_CC |
3920 | 4179 |
3921 fi | 4180 fi |
3922 # AC_CACHE_VAL | 4181 # AC_CACHE_VAL |
3923 case "x$ac_cv_prog_cc_c89" in | 4182 case "x$ac_cv_prog_cc_c89" in |
3924 x) | 4183 x) |
3925 { $as_echo "$as_me:$LINENO: result: none needed" >&5 | 4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3926 $as_echo "none needed" >&6; } ;; | 4185 $as_echo "none needed" >&6; } ;; |
3927 xno) | 4186 xno) |
3928 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | 4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3929 $as_echo "unsupported" >&6; } ;; | 4188 $as_echo "unsupported" >&6; } ;; |
3930 *) | 4189 *) |
3931 CC="$CC $ac_cv_prog_cc_c89" | 4190 CC="$CC $ac_cv_prog_cc_c89" |
3932 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | 4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3933 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 4192 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
3934 esac | 4193 esac |
3935 | 4194 if test "x$ac_cv_prog_cc_c89" != xno; then : |
4195 | |
4196 fi | |
3936 | 4197 |
3937 ac_ext=c | 4198 ac_ext=c |
3938 ac_cpp='$CPP $CPPFLAGS' | 4199 ac_cpp='$CPP $CPPFLAGS' |
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3948 | 4209 |
3949 ## If not using gcc, and on Solaris, and no CPP specified, see if | 4210 ## If not using gcc, and on Solaris, and no CPP specified, see if |
3950 ## using a Sun compiler, which needs -Xs to prevent whitespace. | 4211 ## using a Sun compiler, which needs -Xs to prevent whitespace. |
3951 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ | 4212 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ |
3952 test x"$CPP" = x; then | 4213 test x"$CPP" = x; then |
3953 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5 | 4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5 |
3954 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; } | 4215 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; } |
3955 | 4216 |
3956 if test "${emacs_cv_sunpro_c+set}" = set; then | 4217 if test "${emacs_cv_sunpro_c+set}" = set; then : |
3957 $as_echo_n "(cached) " >&6 | 4218 $as_echo_n "(cached) " >&6 |
3958 else | 4219 else |
3959 cat >conftest.$ac_ext <<_ACEOF | 4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3960 /* confdefs.h. */ | |
3961 _ACEOF | |
3962 cat confdefs.h >>conftest.$ac_ext | |
3963 cat >>conftest.$ac_ext <<_ACEOF | |
3964 /* end confdefs.h. */ | 4221 /* end confdefs.h. */ |
3965 | 4222 |
3966 int | 4223 int |
3967 main () | 4224 main () |
3968 { | 4225 { |
3972 | 4229 |
3973 ; | 4230 ; |
3974 return 0; | 4231 return 0; |
3975 } | 4232 } |
3976 _ACEOF | 4233 _ACEOF |
3977 rm -f conftest.$ac_objext conftest$ac_exeext | 4234 if ac_fn_c_try_link "$LINENO"; then : |
3978 if { (ac_try="$ac_link" | |
3979 case "(($ac_try" in | |
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3981 *) ac_try_echo=$ac_try;; | |
3982 esac | |
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3984 $as_echo "$ac_try_echo") >&5 | |
3985 (eval "$ac_link") 2>conftest.er1 | |
3986 ac_status=$? | |
3987 grep -v '^ *+' conftest.er1 >conftest.err | |
3988 rm -f conftest.er1 | |
3989 cat conftest.err >&5 | |
3990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3991 (exit $ac_status); } && { | |
3992 test -z "$ac_c_werror_flag" || | |
3993 test ! -s conftest.err | |
3994 } && test -s conftest$ac_exeext && { | |
3995 test "$cross_compiling" = yes || | |
3996 $as_test_x conftest$ac_exeext | |
3997 }; then | |
3998 emacs_cv_sunpro_c=yes | 4235 emacs_cv_sunpro_c=yes |
3999 else | 4236 else |
4000 $as_echo "$as_me: failed program was:" >&5 | 4237 emacs_cv_sunpro_c=no |
4001 sed 's/^/| /' conftest.$ac_ext >&5 | 4238 fi |
4002 | 4239 rm -f core conftest.err conftest.$ac_objext \ |
4003 emacs_cv_sunpro_c=no | 4240 conftest$ac_exeext conftest.$ac_ext |
4004 fi | 4241 fi |
4005 | 4242 |
4006 rm -rf conftest.dSYM | 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5 |
4007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4008 conftest$ac_exeext conftest.$ac_ext | |
4009 fi | |
4010 | |
4011 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5 | |
4012 $as_echo "$emacs_cv_sunpro_c" >&6; } | 4244 $as_echo "$emacs_cv_sunpro_c" >&6; } |
4013 | 4245 |
4014 if test x"$emacs_cv_sunpro_c" = xyes; then | 4246 if test x"$emacs_cv_sunpro_c" = xyes; then |
4015 NON_GNU_CPP="$CC -E -Xs" | 4247 NON_GNU_CPP="$CC -E -Xs" |
4016 fi | 4248 fi |
4046 ac_ext=c | 4278 ac_ext=c |
4047 ac_cpp='$CPP $CPPFLAGS' | 4279 ac_cpp='$CPP $CPPFLAGS' |
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 4280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 4281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 4282 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4051 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4052 $as_echo_n "checking how to run the C preprocessor... " >&6; } | 4284 $as_echo_n "checking how to run the C preprocessor... " >&6; } |
4053 # On Suns, sometimes $CPP names a directory. | 4285 # On Suns, sometimes $CPP names a directory. |
4054 if test -n "$CPP" && test -d "$CPP"; then | 4286 if test -n "$CPP" && test -d "$CPP"; then |
4055 CPP= | 4287 CPP= |
4056 fi | 4288 fi |
4057 if test -z "$CPP"; then | 4289 if test -z "$CPP"; then |
4058 if test "${ac_cv_prog_CPP+set}" = set; then | 4290 if test "${ac_cv_prog_CPP+set}" = set; then : |
4059 $as_echo_n "(cached) " >&6 | 4291 $as_echo_n "(cached) " >&6 |
4060 else | 4292 else |
4061 # Double quotes because CPP needs to be expanded | 4293 # Double quotes because CPP needs to be expanded |
4062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 4294 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4063 do | 4295 do |
4068 # with a fresh cross-compiler works. | 4300 # with a fresh cross-compiler works. |
4069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 4301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4070 # <limits.h> exists even on freestanding compilers. | 4302 # <limits.h> exists even on freestanding compilers. |
4071 # On the NeXT, cc -E runs the code through the compiler's parser, | 4303 # On the NeXT, cc -E runs the code through the compiler's parser, |
4072 # not just through cpp. "Syntax error" is here to catch this case. | 4304 # not just through cpp. "Syntax error" is here to catch this case. |
4073 cat >conftest.$ac_ext <<_ACEOF | 4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4074 /* confdefs.h. */ | |
4075 _ACEOF | |
4076 cat confdefs.h >>conftest.$ac_ext | |
4077 cat >>conftest.$ac_ext <<_ACEOF | |
4078 /* end confdefs.h. */ | 4306 /* end confdefs.h. */ |
4079 #ifdef __STDC__ | 4307 #ifdef __STDC__ |
4080 # include <limits.h> | 4308 # include <limits.h> |
4081 #else | 4309 #else |
4082 # include <assert.h> | 4310 # include <assert.h> |
4083 #endif | 4311 #endif |
4084 Syntax error | 4312 Syntax error |
4085 _ACEOF | 4313 _ACEOF |
4086 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4314 if ac_fn_c_try_cpp "$LINENO"; then : |
4087 case "(($ac_try" in | 4315 |
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 4316 else |
4089 *) ac_try_echo=$ac_try;; | |
4090 esac | |
4091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4092 $as_echo "$ac_try_echo") >&5 | |
4093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4094 ac_status=$? | |
4095 grep -v '^ *+' conftest.er1 >conftest.err | |
4096 rm -f conftest.er1 | |
4097 cat conftest.err >&5 | |
4098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4099 (exit $ac_status); } >/dev/null && { | |
4100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4101 test ! -s conftest.err | |
4102 }; then | |
4103 : | |
4104 else | |
4105 $as_echo "$as_me: failed program was:" >&5 | |
4106 sed 's/^/| /' conftest.$ac_ext >&5 | |
4107 | |
4108 # Broken: fails on valid input. | 4317 # Broken: fails on valid input. |
4109 continue | 4318 continue |
4110 fi | 4319 fi |
4111 | |
4112 rm -f conftest.err conftest.$ac_ext | 4320 rm -f conftest.err conftest.$ac_ext |
4113 | 4321 |
4114 # OK, works on sane cases. Now check whether nonexistent headers | 4322 # OK, works on sane cases. Now check whether nonexistent headers |
4115 # can be detected and how. | 4323 # can be detected and how. |
4116 cat >conftest.$ac_ext <<_ACEOF | 4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4117 /* confdefs.h. */ | |
4118 _ACEOF | |
4119 cat confdefs.h >>conftest.$ac_ext | |
4120 cat >>conftest.$ac_ext <<_ACEOF | |
4121 /* end confdefs.h. */ | 4325 /* end confdefs.h. */ |
4122 #include <ac_nonexistent.h> | 4326 #include <ac_nonexistent.h> |
4123 _ACEOF | 4327 _ACEOF |
4124 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4328 if ac_fn_c_try_cpp "$LINENO"; then : |
4125 case "(($ac_try" in | |
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4127 *) ac_try_echo=$ac_try;; | |
4128 esac | |
4129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4130 $as_echo "$ac_try_echo") >&5 | |
4131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4132 ac_status=$? | |
4133 grep -v '^ *+' conftest.er1 >conftest.err | |
4134 rm -f conftest.er1 | |
4135 cat conftest.err >&5 | |
4136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4137 (exit $ac_status); } >/dev/null && { | |
4138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4139 test ! -s conftest.err | |
4140 }; then | |
4141 # Broken: success on invalid input. | 4329 # Broken: success on invalid input. |
4142 continue | 4330 continue |
4143 else | 4331 else |
4144 $as_echo "$as_me: failed program was:" >&5 | |
4145 sed 's/^/| /' conftest.$ac_ext >&5 | |
4146 | |
4147 # Passes both tests. | 4332 # Passes both tests. |
4148 ac_preproc_ok=: | 4333 ac_preproc_ok=: |
4149 break | 4334 break |
4150 fi | 4335 fi |
4151 | |
4152 rm -f conftest.err conftest.$ac_ext | 4336 rm -f conftest.err conftest.$ac_ext |
4153 | 4337 |
4154 done | 4338 done |
4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 4339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4156 rm -f conftest.err conftest.$ac_ext | 4340 rm -f conftest.err conftest.$ac_ext |
4157 if $ac_preproc_ok; then | 4341 if $ac_preproc_ok; then : |
4158 break | 4342 break |
4159 fi | 4343 fi |
4160 | 4344 |
4161 done | 4345 done |
4162 ac_cv_prog_CPP=$CPP | 4346 ac_cv_prog_CPP=$CPP |
4164 fi | 4348 fi |
4165 CPP=$ac_cv_prog_CPP | 4349 CPP=$ac_cv_prog_CPP |
4166 else | 4350 else |
4167 ac_cv_prog_CPP=$CPP | 4351 ac_cv_prog_CPP=$CPP |
4168 fi | 4352 fi |
4169 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | 4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4170 $as_echo "$CPP" >&6; } | 4354 $as_echo "$CPP" >&6; } |
4171 ac_preproc_ok=false | 4355 ac_preproc_ok=false |
4172 for ac_c_preproc_warn_flag in '' yes | 4356 for ac_c_preproc_warn_flag in '' yes |
4173 do | 4357 do |
4174 # Use a header file that comes with gcc, so configuring glibc | 4358 # Use a header file that comes with gcc, so configuring glibc |
4175 # with a fresh cross-compiler works. | 4359 # with a fresh cross-compiler works. |
4176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 4360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4177 # <limits.h> exists even on freestanding compilers. | 4361 # <limits.h> exists even on freestanding compilers. |
4178 # On the NeXT, cc -E runs the code through the compiler's parser, | 4362 # On the NeXT, cc -E runs the code through the compiler's parser, |
4179 # not just through cpp. "Syntax error" is here to catch this case. | 4363 # not just through cpp. "Syntax error" is here to catch this case. |
4180 cat >conftest.$ac_ext <<_ACEOF | 4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4181 /* confdefs.h. */ | |
4182 _ACEOF | |
4183 cat confdefs.h >>conftest.$ac_ext | |
4184 cat >>conftest.$ac_ext <<_ACEOF | |
4185 /* end confdefs.h. */ | 4365 /* end confdefs.h. */ |
4186 #ifdef __STDC__ | 4366 #ifdef __STDC__ |
4187 # include <limits.h> | 4367 # include <limits.h> |
4188 #else | 4368 #else |
4189 # include <assert.h> | 4369 # include <assert.h> |
4190 #endif | 4370 #endif |
4191 Syntax error | 4371 Syntax error |
4192 _ACEOF | 4372 _ACEOF |
4193 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4373 if ac_fn_c_try_cpp "$LINENO"; then : |
4194 case "(($ac_try" in | 4374 |
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 4375 else |
4196 *) ac_try_echo=$ac_try;; | |
4197 esac | |
4198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4199 $as_echo "$ac_try_echo") >&5 | |
4200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4201 ac_status=$? | |
4202 grep -v '^ *+' conftest.er1 >conftest.err | |
4203 rm -f conftest.er1 | |
4204 cat conftest.err >&5 | |
4205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4206 (exit $ac_status); } >/dev/null && { | |
4207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4208 test ! -s conftest.err | |
4209 }; then | |
4210 : | |
4211 else | |
4212 $as_echo "$as_me: failed program was:" >&5 | |
4213 sed 's/^/| /' conftest.$ac_ext >&5 | |
4214 | |
4215 # Broken: fails on valid input. | 4376 # Broken: fails on valid input. |
4216 continue | 4377 continue |
4217 fi | 4378 fi |
4218 | |
4219 rm -f conftest.err conftest.$ac_ext | 4379 rm -f conftest.err conftest.$ac_ext |
4220 | 4380 |
4221 # OK, works on sane cases. Now check whether nonexistent headers | 4381 # OK, works on sane cases. Now check whether nonexistent headers |
4222 # can be detected and how. | 4382 # can be detected and how. |
4223 cat >conftest.$ac_ext <<_ACEOF | 4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4224 /* confdefs.h. */ | |
4225 _ACEOF | |
4226 cat confdefs.h >>conftest.$ac_ext | |
4227 cat >>conftest.$ac_ext <<_ACEOF | |
4228 /* end confdefs.h. */ | 4384 /* end confdefs.h. */ |
4229 #include <ac_nonexistent.h> | 4385 #include <ac_nonexistent.h> |
4230 _ACEOF | 4386 _ACEOF |
4231 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4387 if ac_fn_c_try_cpp "$LINENO"; then : |
4232 case "(($ac_try" in | |
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4234 *) ac_try_echo=$ac_try;; | |
4235 esac | |
4236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4237 $as_echo "$ac_try_echo") >&5 | |
4238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4239 ac_status=$? | |
4240 grep -v '^ *+' conftest.er1 >conftest.err | |
4241 rm -f conftest.er1 | |
4242 cat conftest.err >&5 | |
4243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4244 (exit $ac_status); } >/dev/null && { | |
4245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4246 test ! -s conftest.err | |
4247 }; then | |
4248 # Broken: success on invalid input. | 4388 # Broken: success on invalid input. |
4249 continue | 4389 continue |
4250 else | 4390 else |
4251 $as_echo "$as_me: failed program was:" >&5 | |
4252 sed 's/^/| /' conftest.$ac_ext >&5 | |
4253 | |
4254 # Passes both tests. | 4391 # Passes both tests. |
4255 ac_preproc_ok=: | 4392 ac_preproc_ok=: |
4256 break | 4393 break |
4257 fi | 4394 fi |
4258 | |
4259 rm -f conftest.err conftest.$ac_ext | 4395 rm -f conftest.err conftest.$ac_ext |
4260 | 4396 |
4261 done | 4397 done |
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 4398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4263 rm -f conftest.err conftest.$ac_ext | 4399 rm -f conftest.err conftest.$ac_ext |
4264 if $ac_preproc_ok; then | 4400 if $ac_preproc_ok; then : |
4265 : | 4401 |
4266 else | 4402 else |
4267 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 4403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4268 See \`config.log' for more details." >&5 | 4404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4269 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 4405 as_fn_error "C preprocessor \"$CPP\" fails sanity check |
4270 See \`config.log' for more details." >&2;} | 4406 See \`config.log' for more details." "$LINENO" 5; } |
4271 { (exit 1); exit 1; }; } | |
4272 fi | 4407 fi |
4273 | 4408 |
4274 ac_ext=c | 4409 ac_ext=c |
4275 ac_cpp='$CPP $CPPFLAGS' | 4410 ac_cpp='$CPP $CPPFLAGS' |
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4279 | 4414 |
4280 | 4415 |
4281 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4282 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 4417 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4283 if test "${ac_cv_path_GREP+set}" = set; then | 4418 if test "${ac_cv_path_GREP+set}" = set; then : |
4284 $as_echo_n "(cached) " >&6 | 4419 $as_echo_n "(cached) " >&6 |
4285 else | 4420 else |
4286 if test -z "$GREP"; then | 4421 if test -z "$GREP"; then |
4287 ac_path_GREP_found=false | 4422 ac_path_GREP_found=false |
4288 # Loop through the user's path and test for each of PROGNAME-LIST | 4423 # Loop through the user's path and test for each of PROGNAME-LIST |
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 4425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4291 do | 4426 do |
4292 IFS=$as_save_IFS | 4427 IFS=$as_save_IFS |
4293 test -z "$as_dir" && as_dir=. | 4428 test -z "$as_dir" && as_dir=. |
4294 for ac_prog in grep ggrep; do | 4429 for ac_prog in grep ggrep; do |
4295 for ac_exec_ext in '' $ac_executable_extensions; do | 4430 for ac_exec_ext in '' $ac_executable_extensions; do |
4296 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 4431 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4297 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | 4432 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
4298 # Check for GNU ac_path_GREP and select it if it is found. | 4433 # Check for GNU ac_path_GREP and select it if it is found. |
4299 # Check for GNU $ac_path_GREP | 4434 # Check for GNU $ac_path_GREP |
4309 mv "conftest.tmp" "conftest.in" | 4444 mv "conftest.tmp" "conftest.in" |
4310 cp "conftest.in" "conftest.nl" | 4445 cp "conftest.in" "conftest.nl" |
4311 $as_echo 'GREP' >> "conftest.nl" | 4446 $as_echo 'GREP' >> "conftest.nl" |
4312 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 4447 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 4448 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4314 ac_count=`expr $ac_count + 1` | 4449 as_fn_arith $ac_count + 1 && ac_count=$as_val |
4315 if test $ac_count -gt ${ac_path_GREP_max-0}; then | 4450 if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4316 # Best one so far, save it but keep looking for a better one | 4451 # Best one so far, save it but keep looking for a better one |
4317 ac_cv_path_GREP="$ac_path_GREP" | 4452 ac_cv_path_GREP="$ac_path_GREP" |
4318 ac_path_GREP_max=$ac_count | 4453 ac_path_GREP_max=$ac_count |
4319 fi | 4454 fi |
4324 esac | 4459 esac |
4325 | 4460 |
4326 $ac_path_GREP_found && break 3 | 4461 $ac_path_GREP_found && break 3 |
4327 done | 4462 done |
4328 done | 4463 done |
4329 done | 4464 done |
4330 IFS=$as_save_IFS | 4465 IFS=$as_save_IFS |
4331 if test -z "$ac_cv_path_GREP"; then | 4466 if test -z "$ac_cv_path_GREP"; then |
4332 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | 4467 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4333 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4334 { (exit 1); exit 1; }; } | |
4335 fi | 4468 fi |
4336 else | 4469 else |
4337 ac_cv_path_GREP=$GREP | 4470 ac_cv_path_GREP=$GREP |
4338 fi | 4471 fi |
4339 | 4472 |
4340 fi | 4473 fi |
4341 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | 4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4342 $as_echo "$ac_cv_path_GREP" >&6; } | 4475 $as_echo "$ac_cv_path_GREP" >&6; } |
4343 GREP="$ac_cv_path_GREP" | 4476 GREP="$ac_cv_path_GREP" |
4344 | 4477 |
4345 | 4478 |
4346 { $as_echo "$as_me:$LINENO: checking for egrep" >&5 | 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4347 $as_echo_n "checking for egrep... " >&6; } | 4480 $as_echo_n "checking for egrep... " >&6; } |
4348 if test "${ac_cv_path_EGREP+set}" = set; then | 4481 if test "${ac_cv_path_EGREP+set}" = set; then : |
4349 $as_echo_n "(cached) " >&6 | 4482 $as_echo_n "(cached) " >&6 |
4350 else | 4483 else |
4351 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 4484 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4352 then ac_cv_path_EGREP="$GREP -E" | 4485 then ac_cv_path_EGREP="$GREP -E" |
4353 else | 4486 else |
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4358 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 4491 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4359 do | 4492 do |
4360 IFS=$as_save_IFS | 4493 IFS=$as_save_IFS |
4361 test -z "$as_dir" && as_dir=. | 4494 test -z "$as_dir" && as_dir=. |
4362 for ac_prog in egrep; do | 4495 for ac_prog in egrep; do |
4363 for ac_exec_ext in '' $ac_executable_extensions; do | 4496 for ac_exec_ext in '' $ac_executable_extensions; do |
4364 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 4497 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4365 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | 4498 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
4366 # Check for GNU ac_path_EGREP and select it if it is found. | 4499 # Check for GNU ac_path_EGREP and select it if it is found. |
4367 # Check for GNU $ac_path_EGREP | 4500 # Check for GNU $ac_path_EGREP |
4377 mv "conftest.tmp" "conftest.in" | 4510 mv "conftest.tmp" "conftest.in" |
4378 cp "conftest.in" "conftest.nl" | 4511 cp "conftest.in" "conftest.nl" |
4379 $as_echo 'EGREP' >> "conftest.nl" | 4512 $as_echo 'EGREP' >> "conftest.nl" |
4380 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 4513 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4381 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 4514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4382 ac_count=`expr $ac_count + 1` | 4515 as_fn_arith $ac_count + 1 && ac_count=$as_val |
4383 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 4516 if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4384 # Best one so far, save it but keep looking for a better one | 4517 # Best one so far, save it but keep looking for a better one |
4385 ac_cv_path_EGREP="$ac_path_EGREP" | 4518 ac_cv_path_EGREP="$ac_path_EGREP" |
4386 ac_path_EGREP_max=$ac_count | 4519 ac_path_EGREP_max=$ac_count |
4387 fi | 4520 fi |
4392 esac | 4525 esac |
4393 | 4526 |
4394 $ac_path_EGREP_found && break 3 | 4527 $ac_path_EGREP_found && break 3 |
4395 done | 4528 done |
4396 done | 4529 done |
4397 done | 4530 done |
4398 IFS=$as_save_IFS | 4531 IFS=$as_save_IFS |
4399 if test -z "$ac_cv_path_EGREP"; then | 4532 if test -z "$ac_cv_path_EGREP"; then |
4400 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | 4533 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4401 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4402 { (exit 1); exit 1; }; } | |
4403 fi | 4534 fi |
4404 else | 4535 else |
4405 ac_cv_path_EGREP=$EGREP | 4536 ac_cv_path_EGREP=$EGREP |
4406 fi | 4537 fi |
4407 | 4538 |
4408 fi | 4539 fi |
4409 fi | 4540 fi |
4410 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4411 $as_echo "$ac_cv_path_EGREP" >&6; } | 4542 $as_echo "$ac_cv_path_EGREP" >&6; } |
4412 EGREP="$ac_cv_path_EGREP" | 4543 EGREP="$ac_cv_path_EGREP" |
4413 | 4544 |
4414 | 4545 |
4415 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4416 $as_echo_n "checking for ANSI C header files... " >&6; } | 4547 $as_echo_n "checking for ANSI C header files... " >&6; } |
4417 if test "${ac_cv_header_stdc+set}" = set; then | 4548 if test "${ac_cv_header_stdc+set}" = set; then : |
4418 $as_echo_n "(cached) " >&6 | 4549 $as_echo_n "(cached) " >&6 |
4419 else | 4550 else |
4420 cat >conftest.$ac_ext <<_ACEOF | 4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4421 /* confdefs.h. */ | |
4422 _ACEOF | |
4423 cat confdefs.h >>conftest.$ac_ext | |
4424 cat >>conftest.$ac_ext <<_ACEOF | |
4425 /* end confdefs.h. */ | 4552 /* end confdefs.h. */ |
4426 #include <stdlib.h> | 4553 #include <stdlib.h> |
4427 #include <stdarg.h> | 4554 #include <stdarg.h> |
4428 #include <string.h> | 4555 #include <string.h> |
4429 #include <float.h> | 4556 #include <float.h> |
4434 | 4561 |
4435 ; | 4562 ; |
4436 return 0; | 4563 return 0; |
4437 } | 4564 } |
4438 _ACEOF | 4565 _ACEOF |
4439 rm -f conftest.$ac_objext | 4566 if ac_fn_c_try_compile "$LINENO"; then : |
4440 if { (ac_try="$ac_compile" | |
4441 case "(($ac_try" in | |
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4443 *) ac_try_echo=$ac_try;; | |
4444 esac | |
4445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4446 $as_echo "$ac_try_echo") >&5 | |
4447 (eval "$ac_compile") 2>conftest.er1 | |
4448 ac_status=$? | |
4449 grep -v '^ *+' conftest.er1 >conftest.err | |
4450 rm -f conftest.er1 | |
4451 cat conftest.err >&5 | |
4452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4453 (exit $ac_status); } && { | |
4454 test -z "$ac_c_werror_flag" || | |
4455 test ! -s conftest.err | |
4456 } && test -s conftest.$ac_objext; then | |
4457 ac_cv_header_stdc=yes | 4567 ac_cv_header_stdc=yes |
4458 else | 4568 else |
4459 $as_echo "$as_me: failed program was:" >&5 | 4569 ac_cv_header_stdc=no |
4460 sed 's/^/| /' conftest.$ac_ext >&5 | 4570 fi |
4461 | |
4462 ac_cv_header_stdc=no | |
4463 fi | |
4464 | |
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4466 | 4572 |
4467 if test $ac_cv_header_stdc = yes; then | 4573 if test $ac_cv_header_stdc = yes; then |
4468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 4574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4469 cat >conftest.$ac_ext <<_ACEOF | 4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4470 /* confdefs.h. */ | |
4471 _ACEOF | |
4472 cat confdefs.h >>conftest.$ac_ext | |
4473 cat >>conftest.$ac_ext <<_ACEOF | |
4474 /* end confdefs.h. */ | 4576 /* end confdefs.h. */ |
4475 #include <string.h> | 4577 #include <string.h> |
4476 | 4578 |
4477 _ACEOF | 4579 _ACEOF |
4478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 4580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4479 $EGREP "memchr" >/dev/null 2>&1; then | 4581 $EGREP "memchr" >/dev/null 2>&1; then : |
4480 : | 4582 |
4481 else | 4583 else |
4482 ac_cv_header_stdc=no | 4584 ac_cv_header_stdc=no |
4483 fi | 4585 fi |
4484 rm -f conftest* | 4586 rm -f conftest* |
4485 | 4587 |
4486 fi | 4588 fi |
4487 | 4589 |
4488 if test $ac_cv_header_stdc = yes; then | 4590 if test $ac_cv_header_stdc = yes; then |
4489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 4591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4490 cat >conftest.$ac_ext <<_ACEOF | 4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4491 /* confdefs.h. */ | |
4492 _ACEOF | |
4493 cat confdefs.h >>conftest.$ac_ext | |
4494 cat >>conftest.$ac_ext <<_ACEOF | |
4495 /* end confdefs.h. */ | 4593 /* end confdefs.h. */ |
4496 #include <stdlib.h> | 4594 #include <stdlib.h> |
4497 | 4595 |
4498 _ACEOF | 4596 _ACEOF |
4499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 4597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4500 $EGREP "free" >/dev/null 2>&1; then | 4598 $EGREP "free" >/dev/null 2>&1; then : |
4501 : | 4599 |
4502 else | 4600 else |
4503 ac_cv_header_stdc=no | 4601 ac_cv_header_stdc=no |
4504 fi | 4602 fi |
4505 rm -f conftest* | 4603 rm -f conftest* |
4506 | 4604 |
4507 fi | 4605 fi |
4508 | 4606 |
4509 if test $ac_cv_header_stdc = yes; then | 4607 if test $ac_cv_header_stdc = yes; then |
4510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 4608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4511 if test "$cross_compiling" = yes; then | 4609 if test "$cross_compiling" = yes; then : |
4512 : | 4610 : |
4513 else | 4611 else |
4514 cat >conftest.$ac_ext <<_ACEOF | 4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4515 /* confdefs.h. */ | |
4516 _ACEOF | |
4517 cat confdefs.h >>conftest.$ac_ext | |
4518 cat >>conftest.$ac_ext <<_ACEOF | |
4519 /* end confdefs.h. */ | 4613 /* end confdefs.h. */ |
4520 #include <ctype.h> | 4614 #include <ctype.h> |
4521 #include <stdlib.h> | 4615 #include <stdlib.h> |
4522 #if ((' ' & 0x0FF) == 0x020) | 4616 #if ((' ' & 0x0FF) == 0x020) |
4523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 4617 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4540 || toupper (i) != TOUPPER (i)) | 4634 || toupper (i) != TOUPPER (i)) |
4541 return 2; | 4635 return 2; |
4542 return 0; | 4636 return 0; |
4543 } | 4637 } |
4544 _ACEOF | 4638 _ACEOF |
4545 rm -f conftest$ac_exeext | 4639 if ac_fn_c_try_run "$LINENO"; then : |
4546 if { (ac_try="$ac_link" | 4640 |
4547 case "(($ac_try" in | 4641 else |
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 4642 ac_cv_header_stdc=no |
4549 *) ac_try_echo=$ac_try;; | 4643 fi |
4550 esac | 4644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 4645 conftest.$ac_objext conftest.beam conftest.$ac_ext |
4552 $as_echo "$ac_try_echo") >&5 | 4646 fi |
4553 (eval "$ac_link") 2>&5 | 4647 |
4554 ac_status=$? | 4648 fi |
4555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 4649 fi |
4556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4557 { (case "(($ac_try" in | |
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4559 *) ac_try_echo=$ac_try;; | |
4560 esac | |
4561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4562 $as_echo "$ac_try_echo") >&5 | |
4563 (eval "$ac_try") 2>&5 | |
4564 ac_status=$? | |
4565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4566 (exit $ac_status); }; }; then | |
4567 : | |
4568 else | |
4569 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
4570 $as_echo "$as_me: failed program was:" >&5 | |
4571 sed 's/^/| /' conftest.$ac_ext >&5 | |
4572 | |
4573 ( exit $ac_status ) | |
4574 ac_cv_header_stdc=no | |
4575 fi | |
4576 rm -rf conftest.dSYM | |
4577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4578 fi | |
4579 | |
4580 | |
4581 fi | |
4582 fi | |
4583 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4584 $as_echo "$ac_cv_header_stdc" >&6; } | 4651 $as_echo "$ac_cv_header_stdc" >&6; } |
4585 if test $ac_cv_header_stdc = yes; then | 4652 if test $ac_cv_header_stdc = yes; then |
4586 | 4653 |
4587 cat >>confdefs.h <<\_ACEOF | 4654 $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
4588 #define STDC_HEADERS 1 | |
4589 _ACEOF | |
4590 | 4655 |
4591 fi | 4656 fi |
4592 | 4657 |
4593 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 4658 # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4594 | |
4595 | |
4596 | |
4597 | |
4598 | |
4599 | |
4600 | |
4601 | |
4602 | |
4603 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 4659 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4604 inttypes.h stdint.h unistd.h | 4660 inttypes.h stdint.h unistd.h |
4605 do | 4661 do : |
4606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 4662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4607 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | 4663 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
4608 $as_echo_n "checking for $ac_header... " >&6; } | 4664 " |
4609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 4665 eval as_val=\$$as_ac_Header |
4610 $as_echo_n "(cached) " >&6 | 4666 if test "x$as_val" = x""yes; then : |
4611 else | |
4612 cat >conftest.$ac_ext <<_ACEOF | |
4613 /* confdefs.h. */ | |
4614 _ACEOF | |
4615 cat confdefs.h >>conftest.$ac_ext | |
4616 cat >>conftest.$ac_ext <<_ACEOF | |
4617 /* end confdefs.h. */ | |
4618 $ac_includes_default | |
4619 | |
4620 #include <$ac_header> | |
4621 _ACEOF | |
4622 rm -f conftest.$ac_objext | |
4623 if { (ac_try="$ac_compile" | |
4624 case "(($ac_try" in | |
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4626 *) ac_try_echo=$ac_try;; | |
4627 esac | |
4628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4629 $as_echo "$ac_try_echo") >&5 | |
4630 (eval "$ac_compile") 2>conftest.er1 | |
4631 ac_status=$? | |
4632 grep -v '^ *+' conftest.er1 >conftest.err | |
4633 rm -f conftest.er1 | |
4634 cat conftest.err >&5 | |
4635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4636 (exit $ac_status); } && { | |
4637 test -z "$ac_c_werror_flag" || | |
4638 test ! -s conftest.err | |
4639 } && test -s conftest.$ac_objext; then | |
4640 eval "$as_ac_Header=yes" | |
4641 else | |
4642 $as_echo "$as_me: failed program was:" >&5 | |
4643 sed 's/^/| /' conftest.$ac_ext >&5 | |
4644 | |
4645 eval "$as_ac_Header=no" | |
4646 fi | |
4647 | |
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4649 fi | |
4650 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
4651 $as_echo "$as_val"'` | |
4652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4653 $as_echo "$ac_res" >&6; } | |
4654 if test `eval 'as_val=${'$as_ac_Header'} | |
4655 $as_echo "$as_val"'` = yes; then | |
4656 cat >>confdefs.h <<_ACEOF | 4667 cat >>confdefs.h <<_ACEOF |
4657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 4668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4658 _ACEOF | 4669 _ACEOF |
4659 | 4670 |
4660 fi | 4671 fi |
4661 | 4672 |
4662 done | 4673 done |
4663 | 4674 |
4664 | 4675 |
4665 | 4676 |
4666 if test "${ac_cv_header_minix_config_h+set}" = set; then | 4677 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
4667 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 | 4678 if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
4668 $as_echo_n "checking for minix/config.h... " >&6; } | 4679 MINIX=yes |
4669 if test "${ac_cv_header_minix_config_h+set}" = set; then | 4680 else |
4681 MINIX= | |
4682 fi | |
4683 | |
4684 | |
4685 if test "$MINIX" = yes; then | |
4686 | |
4687 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4688 | |
4689 | |
4690 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4691 | |
4692 | |
4693 $as_echo "#define _MINIX 1" >>confdefs.h | |
4694 | |
4695 fi | |
4696 | |
4697 | |
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4699 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4700 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
4670 $as_echo_n "(cached) " >&6 | 4701 $as_echo_n "(cached) " >&6 |
4671 fi | 4702 else |
4672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | 4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4673 $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
4674 else | |
4675 # Is the header compilable? | |
4676 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
4677 $as_echo_n "checking minix/config.h usability... " >&6; } | |
4678 cat >conftest.$ac_ext <<_ACEOF | |
4679 /* confdefs.h. */ | |
4680 _ACEOF | |
4681 cat confdefs.h >>conftest.$ac_ext | |
4682 cat >>conftest.$ac_ext <<_ACEOF | |
4683 /* end confdefs.h. */ | |
4684 $ac_includes_default | |
4685 #include <minix/config.h> | |
4686 _ACEOF | |
4687 rm -f conftest.$ac_objext | |
4688 if { (ac_try="$ac_compile" | |
4689 case "(($ac_try" in | |
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4691 *) ac_try_echo=$ac_try;; | |
4692 esac | |
4693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4694 $as_echo "$ac_try_echo") >&5 | |
4695 (eval "$ac_compile") 2>conftest.er1 | |
4696 ac_status=$? | |
4697 grep -v '^ *+' conftest.er1 >conftest.err | |
4698 rm -f conftest.er1 | |
4699 cat conftest.err >&5 | |
4700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4701 (exit $ac_status); } && { | |
4702 test -z "$ac_c_werror_flag" || | |
4703 test ! -s conftest.err | |
4704 } && test -s conftest.$ac_objext; then | |
4705 ac_header_compiler=yes | |
4706 else | |
4707 $as_echo "$as_me: failed program was:" >&5 | |
4708 sed 's/^/| /' conftest.$ac_ext >&5 | |
4709 | |
4710 ac_header_compiler=no | |
4711 fi | |
4712 | |
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4714 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4715 $as_echo "$ac_header_compiler" >&6; } | |
4716 | |
4717 # Is the header present? | |
4718 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
4719 $as_echo_n "checking minix/config.h presence... " >&6; } | |
4720 cat >conftest.$ac_ext <<_ACEOF | |
4721 /* confdefs.h. */ | |
4722 _ACEOF | |
4723 cat confdefs.h >>conftest.$ac_ext | |
4724 cat >>conftest.$ac_ext <<_ACEOF | |
4725 /* end confdefs.h. */ | |
4726 #include <minix/config.h> | |
4727 _ACEOF | |
4728 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4729 case "(($ac_try" in | |
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4731 *) ac_try_echo=$ac_try;; | |
4732 esac | |
4733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4734 $as_echo "$ac_try_echo") >&5 | |
4735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4736 ac_status=$? | |
4737 grep -v '^ *+' conftest.er1 >conftest.err | |
4738 rm -f conftest.er1 | |
4739 cat conftest.err >&5 | |
4740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4741 (exit $ac_status); } >/dev/null && { | |
4742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4743 test ! -s conftest.err | |
4744 }; then | |
4745 ac_header_preproc=yes | |
4746 else | |
4747 $as_echo "$as_me: failed program was:" >&5 | |
4748 sed 's/^/| /' conftest.$ac_ext >&5 | |
4749 | |
4750 ac_header_preproc=no | |
4751 fi | |
4752 | |
4753 rm -f conftest.err conftest.$ac_ext | |
4754 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4755 $as_echo "$ac_header_preproc" >&6; } | |
4756 | |
4757 # So? What about this header? | |
4758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4759 yes:no: ) | |
4760 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4761 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4762 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4763 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
4764 ac_header_preproc=yes | |
4765 ;; | |
4766 no:yes:* ) | |
4767 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
4768 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4769 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4770 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4771 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4772 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4773 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4774 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4775 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4776 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4778 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
4779 | |
4780 ;; | |
4781 esac | |
4782 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4783 $as_echo_n "checking for minix/config.h... " >&6; } | |
4784 if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4785 $as_echo_n "(cached) " >&6 | |
4786 else | |
4787 ac_cv_header_minix_config_h=$ac_header_preproc | |
4788 fi | |
4789 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4790 $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
4791 | |
4792 fi | |
4793 if test $ac_cv_header_minix_config_h = yes; then | |
4794 MINIX=yes | |
4795 else | |
4796 MINIX= | |
4797 fi | |
4798 | |
4799 | |
4800 if test "$MINIX" = yes; then | |
4801 | |
4802 cat >>confdefs.h <<\_ACEOF | |
4803 #define _POSIX_SOURCE 1 | |
4804 _ACEOF | |
4805 | |
4806 | |
4807 cat >>confdefs.h <<\_ACEOF | |
4808 #define _POSIX_1_SOURCE 2 | |
4809 _ACEOF | |
4810 | |
4811 | |
4812 cat >>confdefs.h <<\_ACEOF | |
4813 #define _MINIX 1 | |
4814 _ACEOF | |
4815 | |
4816 fi | |
4817 | |
4818 | |
4819 | |
4820 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4821 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4822 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
4823 $as_echo_n "(cached) " >&6 | |
4824 else | |
4825 cat >conftest.$ac_ext <<_ACEOF | |
4826 /* confdefs.h. */ | |
4827 _ACEOF | |
4828 cat confdefs.h >>conftest.$ac_ext | |
4829 cat >>conftest.$ac_ext <<_ACEOF | |
4830 /* end confdefs.h. */ | 4704 /* end confdefs.h. */ |
4831 | 4705 |
4832 # define __EXTENSIONS__ 1 | 4706 # define __EXTENSIONS__ 1 |
4833 $ac_includes_default | 4707 $ac_includes_default |
4834 int | 4708 int |
4837 | 4711 |
4838 ; | 4712 ; |
4839 return 0; | 4713 return 0; |
4840 } | 4714 } |
4841 _ACEOF | 4715 _ACEOF |
4842 rm -f conftest.$ac_objext | 4716 if ac_fn_c_try_compile "$LINENO"; then : |
4843 if { (ac_try="$ac_compile" | |
4844 case "(($ac_try" in | |
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4846 *) ac_try_echo=$ac_try;; | |
4847 esac | |
4848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4849 $as_echo "$ac_try_echo") >&5 | |
4850 (eval "$ac_compile") 2>conftest.er1 | |
4851 ac_status=$? | |
4852 grep -v '^ *+' conftest.er1 >conftest.err | |
4853 rm -f conftest.er1 | |
4854 cat conftest.err >&5 | |
4855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4856 (exit $ac_status); } && { | |
4857 test -z "$ac_c_werror_flag" || | |
4858 test ! -s conftest.err | |
4859 } && test -s conftest.$ac_objext; then | |
4860 ac_cv_safe_to_define___extensions__=yes | 4717 ac_cv_safe_to_define___extensions__=yes |
4861 else | 4718 else |
4862 $as_echo "$as_me: failed program was:" >&5 | 4719 ac_cv_safe_to_define___extensions__=no |
4863 sed 's/^/| /' conftest.$ac_ext >&5 | 4720 fi |
4864 | |
4865 ac_cv_safe_to_define___extensions__=no | |
4866 fi | |
4867 | |
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4869 fi | 4722 fi |
4870 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | 4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4871 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 4724 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
4872 test $ac_cv_safe_to_define___extensions__ = yes && | 4725 test $ac_cv_safe_to_define___extensions__ = yes && |
4873 cat >>confdefs.h <<\_ACEOF | 4726 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
4874 #define __EXTENSIONS__ 1 | 4727 |
4875 _ACEOF | 4728 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
4876 | 4729 |
4877 cat >>confdefs.h <<\_ACEOF | 4730 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
4878 #define _ALL_SOURCE 1 | 4731 |
4879 _ACEOF | 4732 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
4880 | 4733 |
4881 cat >>confdefs.h <<\_ACEOF | 4734 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
4882 #define _GNU_SOURCE 1 | |
4883 _ACEOF | |
4884 | |
4885 cat >>confdefs.h <<\_ACEOF | |
4886 #define _POSIX_PTHREAD_SEMANTICS 1 | |
4887 _ACEOF | |
4888 | |
4889 cat >>confdefs.h <<\_ACEOF | |
4890 #define _TANDEM_SOURCE 1 | |
4891 _ACEOF | |
4892 | 4735 |
4893 | 4736 |
4894 | 4737 |
4895 ### Use -Wno-pointer-sign if the compiler supports it | 4738 ### Use -Wno-pointer-sign if the compiler supports it |
4896 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5 | 4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5 |
4897 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; } | 4740 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; } |
4898 SAVE_CFLAGS="$CFLAGS" | 4741 SAVE_CFLAGS="$CFLAGS" |
4899 CFLAGS="$CFLAGS -Wno-pointer-sign" | 4742 CFLAGS="$CFLAGS -Wno-pointer-sign" |
4900 cat >conftest.$ac_ext <<_ACEOF | 4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4901 /* confdefs.h. */ | |
4902 _ACEOF | |
4903 cat confdefs.h >>conftest.$ac_ext | |
4904 cat >>conftest.$ac_ext <<_ACEOF | |
4905 /* end confdefs.h. */ | 4744 /* end confdefs.h. */ |
4906 | 4745 |
4907 int | 4746 int |
4908 main () | 4747 main () |
4909 { | 4748 { |
4910 | 4749 |
4911 ; | 4750 ; |
4912 return 0; | 4751 return 0; |
4913 } | 4752 } |
4914 _ACEOF | 4753 _ACEOF |
4915 rm -f conftest.$ac_objext | 4754 if ac_fn_c_try_compile "$LINENO"; then : |
4916 if { (ac_try="$ac_compile" | |
4917 case "(($ac_try" in | |
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4919 *) ac_try_echo=$ac_try;; | |
4920 esac | |
4921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4922 $as_echo "$ac_try_echo") >&5 | |
4923 (eval "$ac_compile") 2>conftest.er1 | |
4924 ac_status=$? | |
4925 grep -v '^ *+' conftest.er1 >conftest.err | |
4926 rm -f conftest.er1 | |
4927 cat conftest.err >&5 | |
4928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4929 (exit $ac_status); } && { | |
4930 test -z "$ac_c_werror_flag" || | |
4931 test ! -s conftest.err | |
4932 } && test -s conftest.$ac_objext; then | |
4933 has_option=yes | 4755 has_option=yes |
4934 else | 4756 else |
4935 $as_echo "$as_me: failed program was:" >&5 | 4757 has_option=no |
4936 sed 's/^/| /' conftest.$ac_ext >&5 | 4758 fi |
4937 | |
4938 has_option=no | |
4939 fi | |
4940 | |
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4942 if test $has_option = yes; then | 4760 if test $has_option = yes; then |
4943 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" | 4761 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" |
4944 fi | 4762 fi |
4945 { $as_echo "$as_me:$LINENO: result: $has_option" >&5 | 4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 |
4946 $as_echo "$has_option" >&6; } | 4764 $as_echo "$has_option" >&6; } |
4947 CFLAGS="$SAVE_CFLAGS" | 4765 CFLAGS="$SAVE_CFLAGS" |
4948 unset has_option | 4766 unset has_option |
4949 unset SAVE_CFLAGS | 4767 unset SAVE_CFLAGS |
4950 | 4768 |
4951 ### Use -Wdeclaration-after-statement if the compiler supports it | 4769 ### Use -Wdeclaration-after-statement if the compiler supports it |
4952 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5 | 4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5 |
4953 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } | 4771 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } |
4954 SAVE_CFLAGS="$CFLAGS" | 4772 SAVE_CFLAGS="$CFLAGS" |
4955 CFLAGS="$CFLAGS -Wdeclaration-after-statement" | 4773 CFLAGS="$CFLAGS -Wdeclaration-after-statement" |
4956 cat >conftest.$ac_ext <<_ACEOF | 4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4957 /* confdefs.h. */ | |
4958 _ACEOF | |
4959 cat confdefs.h >>conftest.$ac_ext | |
4960 cat >>conftest.$ac_ext <<_ACEOF | |
4961 /* end confdefs.h. */ | 4775 /* end confdefs.h. */ |
4962 | 4776 |
4963 int | 4777 int |
4964 main () | 4778 main () |
4965 { | 4779 { |
4966 | 4780 |
4967 ; | 4781 ; |
4968 return 0; | 4782 return 0; |
4969 } | 4783 } |
4970 _ACEOF | 4784 _ACEOF |
4971 rm -f conftest.$ac_objext | 4785 if ac_fn_c_try_compile "$LINENO"; then : |
4972 if { (ac_try="$ac_compile" | |
4973 case "(($ac_try" in | |
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4975 *) ac_try_echo=$ac_try;; | |
4976 esac | |
4977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4978 $as_echo "$ac_try_echo") >&5 | |
4979 (eval "$ac_compile") 2>conftest.er1 | |
4980 ac_status=$? | |
4981 grep -v '^ *+' conftest.er1 >conftest.err | |
4982 rm -f conftest.er1 | |
4983 cat conftest.err >&5 | |
4984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4985 (exit $ac_status); } && { | |
4986 test -z "$ac_c_werror_flag" || | |
4987 test ! -s conftest.err | |
4988 } && test -s conftest.$ac_objext; then | |
4989 has_option=yes | 4786 has_option=yes |
4990 else | 4787 else |
4991 $as_echo "$as_me: failed program was:" >&5 | 4788 has_option=no |
4992 sed 's/^/| /' conftest.$ac_ext >&5 | 4789 fi |
4993 | |
4994 has_option=no | |
4995 fi | |
4996 | |
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4998 if test $has_option = yes; then | 4791 if test $has_option = yes; then |
4999 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" | 4792 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" |
5000 fi | 4793 fi |
5001 { $as_echo "$as_me:$LINENO: result: $has_option" >&5 | 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 |
5002 $as_echo "$has_option" >&6; } | 4795 $as_echo "$has_option" >&6; } |
5003 CFLAGS="$SAVE_CFLAGS" | 4796 CFLAGS="$SAVE_CFLAGS" |
5004 unset has_option | 4797 unset has_option |
5005 unset SAVE_CFLAGS | 4798 unset SAVE_CFLAGS |
5006 | 4799 |
5009 ac_ext=c | 4802 ac_ext=c |
5010 ac_cpp='$CPP $CPPFLAGS' | 4803 ac_cpp='$CPP $CPPFLAGS' |
5011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 4804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 4805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5013 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 4806 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5014 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5015 $as_echo_n "checking how to run the C preprocessor... " >&6; } | 4808 $as_echo_n "checking how to run the C preprocessor... " >&6; } |
5016 # On Suns, sometimes $CPP names a directory. | 4809 # On Suns, sometimes $CPP names a directory. |
5017 if test -n "$CPP" && test -d "$CPP"; then | 4810 if test -n "$CPP" && test -d "$CPP"; then |
5018 CPP= | 4811 CPP= |
5019 fi | 4812 fi |
5020 if test -z "$CPP"; then | 4813 if test -z "$CPP"; then |
5021 if test "${ac_cv_prog_CPP+set}" = set; then | 4814 if test "${ac_cv_prog_CPP+set}" = set; then : |
5022 $as_echo_n "(cached) " >&6 | 4815 $as_echo_n "(cached) " >&6 |
5023 else | 4816 else |
5024 # Double quotes because CPP needs to be expanded | 4817 # Double quotes because CPP needs to be expanded |
5025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 4818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
5026 do | 4819 do |
5031 # with a fresh cross-compiler works. | 4824 # with a fresh cross-compiler works. |
5032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 4825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5033 # <limits.h> exists even on freestanding compilers. | 4826 # <limits.h> exists even on freestanding compilers. |
5034 # On the NeXT, cc -E runs the code through the compiler's parser, | 4827 # On the NeXT, cc -E runs the code through the compiler's parser, |
5035 # not just through cpp. "Syntax error" is here to catch this case. | 4828 # not just through cpp. "Syntax error" is here to catch this case. |
5036 cat >conftest.$ac_ext <<_ACEOF | 4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5037 /* confdefs.h. */ | |
5038 _ACEOF | |
5039 cat confdefs.h >>conftest.$ac_ext | |
5040 cat >>conftest.$ac_ext <<_ACEOF | |
5041 /* end confdefs.h. */ | 4830 /* end confdefs.h. */ |
5042 #ifdef __STDC__ | 4831 #ifdef __STDC__ |
5043 # include <limits.h> | 4832 # include <limits.h> |
5044 #else | 4833 #else |
5045 # include <assert.h> | 4834 # include <assert.h> |
5046 #endif | 4835 #endif |
5047 Syntax error | 4836 Syntax error |
5048 _ACEOF | 4837 _ACEOF |
5049 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4838 if ac_fn_c_try_cpp "$LINENO"; then : |
5050 case "(($ac_try" in | 4839 |
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 4840 else |
5052 *) ac_try_echo=$ac_try;; | |
5053 esac | |
5054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5055 $as_echo "$ac_try_echo") >&5 | |
5056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5057 ac_status=$? | |
5058 grep -v '^ *+' conftest.er1 >conftest.err | |
5059 rm -f conftest.er1 | |
5060 cat conftest.err >&5 | |
5061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5062 (exit $ac_status); } >/dev/null && { | |
5063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5064 test ! -s conftest.err | |
5065 }; then | |
5066 : | |
5067 else | |
5068 $as_echo "$as_me: failed program was:" >&5 | |
5069 sed 's/^/| /' conftest.$ac_ext >&5 | |
5070 | |
5071 # Broken: fails on valid input. | 4841 # Broken: fails on valid input. |
5072 continue | 4842 continue |
5073 fi | 4843 fi |
5074 | |
5075 rm -f conftest.err conftest.$ac_ext | 4844 rm -f conftest.err conftest.$ac_ext |
5076 | 4845 |
5077 # OK, works on sane cases. Now check whether nonexistent headers | 4846 # OK, works on sane cases. Now check whether nonexistent headers |
5078 # can be detected and how. | 4847 # can be detected and how. |
5079 cat >conftest.$ac_ext <<_ACEOF | 4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5080 /* confdefs.h. */ | |
5081 _ACEOF | |
5082 cat confdefs.h >>conftest.$ac_ext | |
5083 cat >>conftest.$ac_ext <<_ACEOF | |
5084 /* end confdefs.h. */ | 4849 /* end confdefs.h. */ |
5085 #include <ac_nonexistent.h> | 4850 #include <ac_nonexistent.h> |
5086 _ACEOF | 4851 _ACEOF |
5087 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4852 if ac_fn_c_try_cpp "$LINENO"; then : |
5088 case "(($ac_try" in | |
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5090 *) ac_try_echo=$ac_try;; | |
5091 esac | |
5092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5093 $as_echo "$ac_try_echo") >&5 | |
5094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5095 ac_status=$? | |
5096 grep -v '^ *+' conftest.er1 >conftest.err | |
5097 rm -f conftest.er1 | |
5098 cat conftest.err >&5 | |
5099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5100 (exit $ac_status); } >/dev/null && { | |
5101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5102 test ! -s conftest.err | |
5103 }; then | |
5104 # Broken: success on invalid input. | 4853 # Broken: success on invalid input. |
5105 continue | 4854 continue |
5106 else | 4855 else |
5107 $as_echo "$as_me: failed program was:" >&5 | |
5108 sed 's/^/| /' conftest.$ac_ext >&5 | |
5109 | |
5110 # Passes both tests. | 4856 # Passes both tests. |
5111 ac_preproc_ok=: | 4857 ac_preproc_ok=: |
5112 break | 4858 break |
5113 fi | 4859 fi |
5114 | |
5115 rm -f conftest.err conftest.$ac_ext | 4860 rm -f conftest.err conftest.$ac_ext |
5116 | 4861 |
5117 done | 4862 done |
5118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 4863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5119 rm -f conftest.err conftest.$ac_ext | 4864 rm -f conftest.err conftest.$ac_ext |
5120 if $ac_preproc_ok; then | 4865 if $ac_preproc_ok; then : |
5121 break | 4866 break |
5122 fi | 4867 fi |
5123 | 4868 |
5124 done | 4869 done |
5125 ac_cv_prog_CPP=$CPP | 4870 ac_cv_prog_CPP=$CPP |
5127 fi | 4872 fi |
5128 CPP=$ac_cv_prog_CPP | 4873 CPP=$ac_cv_prog_CPP |
5129 else | 4874 else |
5130 ac_cv_prog_CPP=$CPP | 4875 ac_cv_prog_CPP=$CPP |
5131 fi | 4876 fi |
5132 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | 4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
5133 $as_echo "$CPP" >&6; } | 4878 $as_echo "$CPP" >&6; } |
5134 ac_preproc_ok=false | 4879 ac_preproc_ok=false |
5135 for ac_c_preproc_warn_flag in '' yes | 4880 for ac_c_preproc_warn_flag in '' yes |
5136 do | 4881 do |
5137 # Use a header file that comes with gcc, so configuring glibc | 4882 # Use a header file that comes with gcc, so configuring glibc |
5138 # with a fresh cross-compiler works. | 4883 # with a fresh cross-compiler works. |
5139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 4884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5140 # <limits.h> exists even on freestanding compilers. | 4885 # <limits.h> exists even on freestanding compilers. |
5141 # On the NeXT, cc -E runs the code through the compiler's parser, | 4886 # On the NeXT, cc -E runs the code through the compiler's parser, |
5142 # not just through cpp. "Syntax error" is here to catch this case. | 4887 # not just through cpp. "Syntax error" is here to catch this case. |
5143 cat >conftest.$ac_ext <<_ACEOF | 4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5144 /* confdefs.h. */ | |
5145 _ACEOF | |
5146 cat confdefs.h >>conftest.$ac_ext | |
5147 cat >>conftest.$ac_ext <<_ACEOF | |
5148 /* end confdefs.h. */ | 4889 /* end confdefs.h. */ |
5149 #ifdef __STDC__ | 4890 #ifdef __STDC__ |
5150 # include <limits.h> | 4891 # include <limits.h> |
5151 #else | 4892 #else |
5152 # include <assert.h> | 4893 # include <assert.h> |
5153 #endif | 4894 #endif |
5154 Syntax error | 4895 Syntax error |
5155 _ACEOF | 4896 _ACEOF |
5156 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4897 if ac_fn_c_try_cpp "$LINENO"; then : |
5157 case "(($ac_try" in | 4898 |
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 4899 else |
5159 *) ac_try_echo=$ac_try;; | |
5160 esac | |
5161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5162 $as_echo "$ac_try_echo") >&5 | |
5163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5164 ac_status=$? | |
5165 grep -v '^ *+' conftest.er1 >conftest.err | |
5166 rm -f conftest.er1 | |
5167 cat conftest.err >&5 | |
5168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5169 (exit $ac_status); } >/dev/null && { | |
5170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5171 test ! -s conftest.err | |
5172 }; then | |
5173 : | |
5174 else | |
5175 $as_echo "$as_me: failed program was:" >&5 | |
5176 sed 's/^/| /' conftest.$ac_ext >&5 | |
5177 | |
5178 # Broken: fails on valid input. | 4900 # Broken: fails on valid input. |
5179 continue | 4901 continue |
5180 fi | 4902 fi |
5181 | |
5182 rm -f conftest.err conftest.$ac_ext | 4903 rm -f conftest.err conftest.$ac_ext |
5183 | 4904 |
5184 # OK, works on sane cases. Now check whether nonexistent headers | 4905 # OK, works on sane cases. Now check whether nonexistent headers |
5185 # can be detected and how. | 4906 # can be detected and how. |
5186 cat >conftest.$ac_ext <<_ACEOF | 4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5187 /* confdefs.h. */ | |
5188 _ACEOF | |
5189 cat confdefs.h >>conftest.$ac_ext | |
5190 cat >>conftest.$ac_ext <<_ACEOF | |
5191 /* end confdefs.h. */ | 4908 /* end confdefs.h. */ |
5192 #include <ac_nonexistent.h> | 4909 #include <ac_nonexistent.h> |
5193 _ACEOF | 4910 _ACEOF |
5194 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4911 if ac_fn_c_try_cpp "$LINENO"; then : |
5195 case "(($ac_try" in | |
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5197 *) ac_try_echo=$ac_try;; | |
5198 esac | |
5199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5200 $as_echo "$ac_try_echo") >&5 | |
5201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5202 ac_status=$? | |
5203 grep -v '^ *+' conftest.er1 >conftest.err | |
5204 rm -f conftest.er1 | |
5205 cat conftest.err >&5 | |
5206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5207 (exit $ac_status); } >/dev/null && { | |
5208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5209 test ! -s conftest.err | |
5210 }; then | |
5211 # Broken: success on invalid input. | 4912 # Broken: success on invalid input. |
5212 continue | 4913 continue |
5213 else | 4914 else |
5214 $as_echo "$as_me: failed program was:" >&5 | |
5215 sed 's/^/| /' conftest.$ac_ext >&5 | |
5216 | |
5217 # Passes both tests. | 4915 # Passes both tests. |
5218 ac_preproc_ok=: | 4916 ac_preproc_ok=: |
5219 break | 4917 break |
5220 fi | 4918 fi |
5221 | |
5222 rm -f conftest.err conftest.$ac_ext | 4919 rm -f conftest.err conftest.$ac_ext |
5223 | 4920 |
5224 done | 4921 done |
5225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 4922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5226 rm -f conftest.err conftest.$ac_ext | 4923 rm -f conftest.err conftest.$ac_ext |
5227 if $ac_preproc_ok; then | 4924 if $ac_preproc_ok; then : |
5228 : | 4925 |
5229 else | 4926 else |
5230 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 4927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5231 See \`config.log' for more details." >&5 | 4928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5232 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 4929 as_fn_error "C preprocessor \"$CPP\" fails sanity check |
5233 See \`config.log' for more details." >&2;} | 4930 See \`config.log' for more details." "$LINENO" 5; } |
5234 { (exit 1); exit 1; }; } | |
5235 fi | 4931 fi |
5236 | 4932 |
5237 ac_ext=c | 4933 ac_ext=c |
5238 ac_cpp='$CPP $CPPFLAGS' | 4934 ac_cpp='$CPP $CPPFLAGS' |
5239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 4935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5252 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 4948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
5253 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 4949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
5254 # OS/2's system install, which has a completely different semantic | 4950 # OS/2's system install, which has a completely different semantic |
5255 # ./install, which can be erroneously created by make from ./install.sh. | 4951 # ./install, which can be erroneously created by make from ./install.sh. |
5256 # Reject install programs that cannot install multiple files. | 4952 # Reject install programs that cannot install multiple files. |
5257 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
5258 $as_echo_n "checking for a BSD-compatible install... " >&6; } | 4954 $as_echo_n "checking for a BSD-compatible install... " >&6; } |
5259 if test -z "$INSTALL"; then | 4955 if test -z "$INSTALL"; then |
5260 if test "${ac_cv_path_install+set}" = set; then | 4956 if test "${ac_cv_path_install+set}" = set; then : |
5261 $as_echo_n "(cached) " >&6 | 4957 $as_echo_n "(cached) " >&6 |
5262 else | 4958 else |
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5264 for as_dir in $PATH | 4960 for as_dir in $PATH |
5265 do | 4961 do |
5266 IFS=$as_save_IFS | 4962 IFS=$as_save_IFS |
5267 test -z "$as_dir" && as_dir=. | 4963 test -z "$as_dir" && as_dir=. |
5268 # Account for people who put trailing slashes in PATH elements. | 4964 # Account for people who put trailing slashes in PATH elements. |
5269 case $as_dir/ in | 4965 case $as_dir/ in #(( |
5270 ./ | .// | /cC/* | \ | 4966 ./ | .// | /[cC]/* | \ |
5271 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 4967 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5272 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | 4968 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
5273 /usr/ucb/* ) ;; | 4969 /usr/ucb/* ) ;; |
5274 *) | 4970 *) |
5275 # OSF1 and SCO ODT 3.0 have their own names for install. | 4971 # OSF1 and SCO ODT 3.0 have their own names for install. |
5276 # Don't use installbsd from OSF since it installs stuff as root | 4972 # Don't use installbsd from OSF since it installs stuff as root |
5277 # by default. | 4973 # by default. |
5304 done | 5000 done |
5305 done | 5001 done |
5306 ;; | 5002 ;; |
5307 esac | 5003 esac |
5308 | 5004 |
5309 done | 5005 done |
5310 IFS=$as_save_IFS | 5006 IFS=$as_save_IFS |
5311 | 5007 |
5312 rm -rf conftest.one conftest.two conftest.dir | 5008 rm -rf conftest.one conftest.two conftest.dir |
5313 | 5009 |
5314 fi | 5010 fi |
5320 # break other packages using the cache if that directory is | 5016 # break other packages using the cache if that directory is |
5321 # removed, or if the value is a relative name. | 5017 # removed, or if the value is a relative name. |
5322 INSTALL=$ac_install_sh | 5018 INSTALL=$ac_install_sh |
5323 fi | 5019 fi |
5324 fi | 5020 fi |
5325 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 | 5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
5326 $as_echo "$INSTALL" >&6; } | 5022 $as_echo "$INSTALL" >&6; } |
5327 | 5023 |
5328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 5024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
5329 # It thinks the first close brace ends the variable substitution. | 5025 # It thinks the first close brace ends the variable substitution. |
5330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 5026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
5335 | 5031 |
5336 if test "x$RANLIB" = x; then | 5032 if test "x$RANLIB" = x; then |
5337 if test -n "$ac_tool_prefix"; then | 5033 if test -n "$ac_tool_prefix"; then |
5338 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 5034 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
5339 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 5035 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5341 $as_echo_n "checking for $ac_word... " >&6; } | 5037 $as_echo_n "checking for $ac_word... " >&6; } |
5342 if test "${ac_cv_prog_RANLIB+set}" = set; then | 5038 if test "${ac_cv_prog_RANLIB+set}" = set; then : |
5343 $as_echo_n "(cached) " >&6 | 5039 $as_echo_n "(cached) " >&6 |
5344 else | 5040 else |
5345 if test -n "$RANLIB"; then | 5041 if test -n "$RANLIB"; then |
5346 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 5042 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
5347 else | 5043 else |
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5349 for as_dir in $PATH | 5045 for as_dir in $PATH |
5350 do | 5046 do |
5351 IFS=$as_save_IFS | 5047 IFS=$as_save_IFS |
5352 test -z "$as_dir" && as_dir=. | 5048 test -z "$as_dir" && as_dir=. |
5353 for ac_exec_ext in '' $ac_executable_extensions; do | 5049 for ac_exec_ext in '' $ac_executable_extensions; do |
5354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 5050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5355 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 5051 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5356 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5357 break 2 | 5053 break 2 |
5358 fi | 5054 fi |
5359 done | 5055 done |
5360 done | 5056 done |
5361 IFS=$as_save_IFS | 5057 IFS=$as_save_IFS |
5362 | 5058 |
5363 fi | 5059 fi |
5364 fi | 5060 fi |
5365 RANLIB=$ac_cv_prog_RANLIB | 5061 RANLIB=$ac_cv_prog_RANLIB |
5366 if test -n "$RANLIB"; then | 5062 if test -n "$RANLIB"; then |
5367 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 | 5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
5368 $as_echo "$RANLIB" >&6; } | 5064 $as_echo "$RANLIB" >&6; } |
5369 else | 5065 else |
5370 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5371 $as_echo "no" >&6; } | 5067 $as_echo "no" >&6; } |
5372 fi | 5068 fi |
5373 | 5069 |
5374 | 5070 |
5375 fi | 5071 fi |
5376 if test -z "$ac_cv_prog_RANLIB"; then | 5072 if test -z "$ac_cv_prog_RANLIB"; then |
5377 ac_ct_RANLIB=$RANLIB | 5073 ac_ct_RANLIB=$RANLIB |
5378 # Extract the first word of "ranlib", so it can be a program name with args. | 5074 # Extract the first word of "ranlib", so it can be a program name with args. |
5379 set dummy ranlib; ac_word=$2 | 5075 set dummy ranlib; ac_word=$2 |
5380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5381 $as_echo_n "checking for $ac_word... " >&6; } | 5077 $as_echo_n "checking for $ac_word... " >&6; } |
5382 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 5078 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
5383 $as_echo_n "(cached) " >&6 | 5079 $as_echo_n "(cached) " >&6 |
5384 else | 5080 else |
5385 if test -n "$ac_ct_RANLIB"; then | 5081 if test -n "$ac_ct_RANLIB"; then |
5386 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 5082 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
5387 else | 5083 else |
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5389 for as_dir in $PATH | 5085 for as_dir in $PATH |
5390 do | 5086 do |
5391 IFS=$as_save_IFS | 5087 IFS=$as_save_IFS |
5392 test -z "$as_dir" && as_dir=. | 5088 test -z "$as_dir" && as_dir=. |
5393 for ac_exec_ext in '' $ac_executable_extensions; do | 5089 for ac_exec_ext in '' $ac_executable_extensions; do |
5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5395 ac_cv_prog_ac_ct_RANLIB="ranlib" | 5091 ac_cv_prog_ac_ct_RANLIB="ranlib" |
5396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5397 break 2 | 5093 break 2 |
5398 fi | 5094 fi |
5399 done | 5095 done |
5400 done | 5096 done |
5401 IFS=$as_save_IFS | 5097 IFS=$as_save_IFS |
5402 | 5098 |
5403 fi | 5099 fi |
5404 fi | 5100 fi |
5405 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 5101 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5406 if test -n "$ac_ct_RANLIB"; then | 5102 if test -n "$ac_ct_RANLIB"; then |
5407 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
5408 $as_echo "$ac_ct_RANLIB" >&6; } | 5104 $as_echo "$ac_ct_RANLIB" >&6; } |
5409 else | 5105 else |
5410 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5411 $as_echo "no" >&6; } | 5107 $as_echo "no" >&6; } |
5412 fi | 5108 fi |
5413 | 5109 |
5414 if test "x$ac_ct_RANLIB" = x; then | 5110 if test "x$ac_ct_RANLIB" = x; then |
5415 RANLIB=":" | 5111 RANLIB=":" |
5416 else | 5112 else |
5417 case $cross_compiling:$ac_tool_warned in | 5113 case $cross_compiling:$ac_tool_warned in |
5418 yes:) | 5114 yes:) |
5419 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5420 whose name does not start with the host triplet. If you think this | 5116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5421 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5422 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5423 whose name does not start with the host triplet. If you think this | |
5424 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5425 ac_tool_warned=yes ;; | 5117 ac_tool_warned=yes ;; |
5426 esac | 5118 esac |
5427 RANLIB=$ac_ct_RANLIB | 5119 RANLIB=$ac_ct_RANLIB |
5428 fi | 5120 fi |
5429 else | 5121 else |
5435 ## Although we're running on an amd64 kernel, we're actually compiling for | 5127 ## Although we're running on an amd64 kernel, we're actually compiling for |
5436 ## the x86 architecture. The user should probably have provided an | 5128 ## the x86 architecture. The user should probably have provided an |
5437 ## explicit --build to `configure', but if everything else than the kernel | 5129 ## explicit --build to `configure', but if everything else than the kernel |
5438 ## is running in i386 mode, we can help them out. | 5130 ## is running in i386 mode, we can help them out. |
5439 if test "$machine" = "amdx86-64"; then | 5131 if test "$machine" = "amdx86-64"; then |
5440 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5 | 5132 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default" |
5441 $as_echo_n "checking whether i386 is declared... " >&6; } | 5133 if test "x$ac_cv_have_decl_i386" = x""yes; then : |
5442 if test "${ac_cv_have_decl_i386+set}" = set; then | 5134 |
5443 $as_echo_n "(cached) " >&6 | 5135 fi |
5444 else | |
5445 cat >conftest.$ac_ext <<_ACEOF | |
5446 /* confdefs.h. */ | |
5447 _ACEOF | |
5448 cat confdefs.h >>conftest.$ac_ext | |
5449 cat >>conftest.$ac_ext <<_ACEOF | |
5450 /* end confdefs.h. */ | |
5451 $ac_includes_default | |
5452 int | |
5453 main () | |
5454 { | |
5455 #ifndef i386 | |
5456 (void) i386; | |
5457 #endif | |
5458 | |
5459 ; | |
5460 return 0; | |
5461 } | |
5462 _ACEOF | |
5463 rm -f conftest.$ac_objext | |
5464 if { (ac_try="$ac_compile" | |
5465 case "(($ac_try" in | |
5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5467 *) ac_try_echo=$ac_try;; | |
5468 esac | |
5469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5470 $as_echo "$ac_try_echo") >&5 | |
5471 (eval "$ac_compile") 2>conftest.er1 | |
5472 ac_status=$? | |
5473 grep -v '^ *+' conftest.er1 >conftest.err | |
5474 rm -f conftest.er1 | |
5475 cat conftest.err >&5 | |
5476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5477 (exit $ac_status); } && { | |
5478 test -z "$ac_c_werror_flag" || | |
5479 test ! -s conftest.err | |
5480 } && test -s conftest.$ac_objext; then | |
5481 ac_cv_have_decl_i386=yes | |
5482 else | |
5483 $as_echo "$as_me: failed program was:" >&5 | |
5484 sed 's/^/| /' conftest.$ac_ext >&5 | |
5485 | |
5486 ac_cv_have_decl_i386=no | |
5487 fi | |
5488 | |
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5490 fi | |
5491 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5 | |
5492 $as_echo "$ac_cv_have_decl_i386" >&6; } | |
5493 | 5136 |
5494 if test "$ac_cv_have_decl_i386" = "yes"; then | 5137 if test "$ac_cv_have_decl_i386" = "yes"; then |
5495 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'` | 5138 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'` |
5496 machine=intel386 | 5139 machine=intel386 |
5497 machfile="m/${machine}.h" | 5140 machfile="m/${machine}.h" |
5498 fi | 5141 fi |
5499 fi | 5142 fi |
5500 | 5143 |
5501 # Extract the first word of "install-info", so it can be a program name with args. | 5144 # Extract the first word of "install-info", so it can be a program name with args. |
5502 set dummy install-info; ac_word=$2 | 5145 set dummy install-info; ac_word=$2 |
5503 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5504 $as_echo_n "checking for $ac_word... " >&6; } | 5147 $as_echo_n "checking for $ac_word... " >&6; } |
5505 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | 5148 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : |
5506 $as_echo_n "(cached) " >&6 | 5149 $as_echo_n "(cached) " >&6 |
5507 else | 5150 else |
5508 case $INSTALL_INFO in | 5151 case $INSTALL_INFO in |
5509 [\\/]* | ?:[\\/]*) | 5152 [\\/]* | ?:[\\/]*) |
5510 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | 5153 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5514 for as_dir in $PATH | 5157 for as_dir in $PATH |
5515 do | 5158 do |
5516 IFS=$as_save_IFS | 5159 IFS=$as_save_IFS |
5517 test -z "$as_dir" && as_dir=. | 5160 test -z "$as_dir" && as_dir=. |
5518 for ac_exec_ext in '' $ac_executable_extensions; do | 5161 for ac_exec_ext in '' $ac_executable_extensions; do |
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5520 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | 5163 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5522 break 2 | 5165 break 2 |
5523 fi | 5166 fi |
5524 done | 5167 done |
5525 done | 5168 done |
5526 IFS=$as_save_IFS | 5169 IFS=$as_save_IFS |
5527 | 5170 |
5528 ;; | 5171 ;; |
5529 esac | 5172 esac |
5530 fi | 5173 fi |
5531 INSTALL_INFO=$ac_cv_path_INSTALL_INFO | 5174 INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
5532 if test -n "$INSTALL_INFO"; then | 5175 if test -n "$INSTALL_INFO"; then |
5533 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 |
5534 $as_echo "$INSTALL_INFO" >&6; } | 5177 $as_echo "$INSTALL_INFO" >&6; } |
5535 else | 5178 else |
5536 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5537 $as_echo "no" >&6; } | 5180 $as_echo "no" >&6; } |
5538 fi | 5181 fi |
5539 | 5182 |
5540 | 5183 |
5541 # Extract the first word of "install-info", so it can be a program name with args. | 5184 # Extract the first word of "install-info", so it can be a program name with args. |
5542 set dummy install-info; ac_word=$2 | 5185 set dummy install-info; ac_word=$2 |
5543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5544 $as_echo_n "checking for $ac_word... " >&6; } | 5187 $as_echo_n "checking for $ac_word... " >&6; } |
5545 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | 5188 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : |
5546 $as_echo_n "(cached) " >&6 | 5189 $as_echo_n "(cached) " >&6 |
5547 else | 5190 else |
5548 case $INSTALL_INFO in | 5191 case $INSTALL_INFO in |
5549 [\\/]* | ?:[\\/]*) | 5192 [\\/]* | ?:[\\/]*) |
5550 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | 5193 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5554 for as_dir in /usr/sbin | 5197 for as_dir in /usr/sbin |
5555 do | 5198 do |
5556 IFS=$as_save_IFS | 5199 IFS=$as_save_IFS |
5557 test -z "$as_dir" && as_dir=. | 5200 test -z "$as_dir" && as_dir=. |
5558 for ac_exec_ext in '' $ac_executable_extensions; do | 5201 for ac_exec_ext in '' $ac_executable_extensions; do |
5559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5560 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | 5203 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5561 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5562 break 2 | 5205 break 2 |
5563 fi | 5206 fi |
5564 done | 5207 done |
5565 done | 5208 done |
5566 IFS=$as_save_IFS | 5209 IFS=$as_save_IFS |
5567 | 5210 |
5568 ;; | 5211 ;; |
5569 esac | 5212 esac |
5570 fi | 5213 fi |
5571 INSTALL_INFO=$ac_cv_path_INSTALL_INFO | 5214 INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
5572 if test -n "$INSTALL_INFO"; then | 5215 if test -n "$INSTALL_INFO"; then |
5573 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 |
5574 $as_echo "$INSTALL_INFO" >&6; } | 5217 $as_echo "$INSTALL_INFO" >&6; } |
5575 else | 5218 else |
5576 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5577 $as_echo "no" >&6; } | 5220 $as_echo "no" >&6; } |
5578 fi | 5221 fi |
5579 | 5222 |
5580 | 5223 |
5581 # Extract the first word of "install-info", so it can be a program name with args. | 5224 # Extract the first word of "install-info", so it can be a program name with args. |
5582 set dummy install-info; ac_word=$2 | 5225 set dummy install-info; ac_word=$2 |
5583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5584 $as_echo_n "checking for $ac_word... " >&6; } | 5227 $as_echo_n "checking for $ac_word... " >&6; } |
5585 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | 5228 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : |
5586 $as_echo_n "(cached) " >&6 | 5229 $as_echo_n "(cached) " >&6 |
5587 else | 5230 else |
5588 case $INSTALL_INFO in | 5231 case $INSTALL_INFO in |
5589 [\\/]* | ?:[\\/]*) | 5232 [\\/]* | ?:[\\/]*) |
5590 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | 5233 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5594 for as_dir in /sbin | 5237 for as_dir in /sbin |
5595 do | 5238 do |
5596 IFS=$as_save_IFS | 5239 IFS=$as_save_IFS |
5597 test -z "$as_dir" && as_dir=. | 5240 test -z "$as_dir" && as_dir=. |
5598 for ac_exec_ext in '' $ac_executable_extensions; do | 5241 for ac_exec_ext in '' $ac_executable_extensions; do |
5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5600 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | 5243 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5601 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5602 break 2 | 5245 break 2 |
5603 fi | 5246 fi |
5604 done | 5247 done |
5605 done | 5248 done |
5606 IFS=$as_save_IFS | 5249 IFS=$as_save_IFS |
5607 | 5250 |
5608 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" | 5251 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" |
5609 ;; | 5252 ;; |
5610 esac | 5253 esac |
5611 fi | 5254 fi |
5612 INSTALL_INFO=$ac_cv_path_INSTALL_INFO | 5255 INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
5613 if test -n "$INSTALL_INFO"; then | 5256 if test -n "$INSTALL_INFO"; then |
5614 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 |
5615 $as_echo "$INSTALL_INFO" >&6; } | 5258 $as_echo "$INSTALL_INFO" >&6; } |
5616 else | 5259 else |
5617 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5618 $as_echo "no" >&6; } | 5261 $as_echo "no" >&6; } |
5619 fi | 5262 fi |
5620 | 5263 |
5621 | 5264 |
5622 # Extract the first word of "gzip", so it can be a program name with args. | 5265 # Extract the first word of "gzip", so it can be a program name with args. |
5623 set dummy gzip; ac_word=$2 | 5266 set dummy gzip; ac_word=$2 |
5624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5625 $as_echo_n "checking for $ac_word... " >&6; } | 5268 $as_echo_n "checking for $ac_word... " >&6; } |
5626 if test "${ac_cv_path_GZIP_PROG+set}" = set; then | 5269 if test "${ac_cv_path_GZIP_PROG+set}" = set; then : |
5627 $as_echo_n "(cached) " >&6 | 5270 $as_echo_n "(cached) " >&6 |
5628 else | 5271 else |
5629 case $GZIP_PROG in | 5272 case $GZIP_PROG in |
5630 [\\/]* | ?:[\\/]*) | 5273 [\\/]* | ?:[\\/]*) |
5631 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. | 5274 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. |
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5635 for as_dir in $PATH | 5278 for as_dir in $PATH |
5636 do | 5279 do |
5637 IFS=$as_save_IFS | 5280 IFS=$as_save_IFS |
5638 test -z "$as_dir" && as_dir=. | 5281 test -z "$as_dir" && as_dir=. |
5639 for ac_exec_ext in '' $ac_executable_extensions; do | 5282 for ac_exec_ext in '' $ac_executable_extensions; do |
5640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5641 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" | 5284 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" |
5642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5643 break 2 | 5286 break 2 |
5644 fi | 5287 fi |
5645 done | 5288 done |
5646 done | 5289 done |
5647 IFS=$as_save_IFS | 5290 IFS=$as_save_IFS |
5648 | 5291 |
5649 ;; | 5292 ;; |
5650 esac | 5293 esac |
5651 fi | 5294 fi |
5652 GZIP_PROG=$ac_cv_path_GZIP_PROG | 5295 GZIP_PROG=$ac_cv_path_GZIP_PROG |
5653 if test -n "$GZIP_PROG"; then | 5296 if test -n "$GZIP_PROG"; then |
5654 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5 | 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5 |
5655 $as_echo "$GZIP_PROG" >&6; } | 5298 $as_echo "$GZIP_PROG" >&6; } |
5656 else | 5299 else |
5657 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5658 $as_echo "no" >&6; } | 5301 $as_echo "no" >&6; } |
5659 fi | 5302 fi |
5660 | 5303 |
5661 | 5304 |
5662 | 5305 |
5663 | 5306 |
5664 ## Need makeinfo >= 4.6 (?) to build the manuals. | 5307 ## Need makeinfo >= 4.6 (?) to build the manuals. |
5665 # Extract the first word of "makeinfo", so it can be a program name with args. | 5308 # Extract the first word of "makeinfo", so it can be a program name with args. |
5666 set dummy makeinfo; ac_word=$2 | 5309 set dummy makeinfo; ac_word=$2 |
5667 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5668 $as_echo_n "checking for $ac_word... " >&6; } | 5311 $as_echo_n "checking for $ac_word... " >&6; } |
5669 if test "${ac_cv_path_MAKEINFO+set}" = set; then | 5312 if test "${ac_cv_path_MAKEINFO+set}" = set; then : |
5670 $as_echo_n "(cached) " >&6 | 5313 $as_echo_n "(cached) " >&6 |
5671 else | 5314 else |
5672 case $MAKEINFO in | 5315 case $MAKEINFO in |
5673 [\\/]* | ?:[\\/]*) | 5316 [\\/]* | ?:[\\/]*) |
5674 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. | 5317 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. |
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5678 for as_dir in $PATH | 5321 for as_dir in $PATH |
5679 do | 5322 do |
5680 IFS=$as_save_IFS | 5323 IFS=$as_save_IFS |
5681 test -z "$as_dir" && as_dir=. | 5324 test -z "$as_dir" && as_dir=. |
5682 for ac_exec_ext in '' $ac_executable_extensions; do | 5325 for ac_exec_ext in '' $ac_executable_extensions; do |
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5684 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" | 5327 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" |
5685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5686 break 2 | 5329 break 2 |
5687 fi | 5330 fi |
5688 done | 5331 done |
5689 done | 5332 done |
5690 IFS=$as_save_IFS | 5333 IFS=$as_save_IFS |
5691 | 5334 |
5692 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" | 5335 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" |
5693 ;; | 5336 ;; |
5694 esac | 5337 esac |
5695 fi | 5338 fi |
5696 MAKEINFO=$ac_cv_path_MAKEINFO | 5339 MAKEINFO=$ac_cv_path_MAKEINFO |
5697 if test -n "$MAKEINFO"; then | 5340 if test -n "$MAKEINFO"; then |
5698 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5 | 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
5699 $as_echo "$MAKEINFO" >&6; } | 5342 $as_echo "$MAKEINFO" >&6; } |
5700 else | 5343 else |
5701 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5702 $as_echo "no" >&6; } | 5345 $as_echo "no" >&6; } |
5703 fi | 5346 fi |
5704 | 5347 |
5705 | 5348 |
5706 if test "$MAKEINFO" != "no" && \ | 5349 if test "$MAKEINFO" != "no" && \ |
5719 ## with pre-built manuals, from a Bazaar checkout. | 5362 ## with pre-built manuals, from a Bazaar checkout. |
5720 if test "$MAKEINFO" = "no"; then | 5363 if test "$MAKEINFO" = "no"; then |
5721 if test "x${with_makeinfo}" = "xno"; then | 5364 if test "x${with_makeinfo}" = "xno"; then |
5722 MAKEINFO=off | 5365 MAKEINFO=off |
5723 elif test ! -e $srcdir/info/emacs; then | 5366 elif test ! -e $srcdir/info/emacs; then |
5724 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your | 5367 as_fn_error "You do not seem to have makeinfo >= 4.6, and your |
5725 source tree does not seem to have pre-built manuals in the \`info' directory. | 5368 source tree does not seem to have pre-built manuals in the \`info' directory. |
5726 Either install a suitable version of makeinfo, or re-run configure | 5369 Either install a suitable version of makeinfo, or re-run configure |
5727 with the \`--without-makeinfo' option to build without the manuals. " >&5 | 5370 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 |
5728 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your | |
5729 source tree does not seem to have pre-built manuals in the \`info' directory. | |
5730 Either install a suitable version of makeinfo, or re-run configure | |
5731 with the \`--without-makeinfo' option to build without the manuals. " >&2;} | |
5732 { (exit 1); exit 1; }; } | |
5733 fi | 5371 fi |
5734 fi | 5372 fi |
5735 | 5373 |
5736 | 5374 |
5737 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x | 5375 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
5750 LDFLAGS="$LDFLAGS -Wl,-znocombreloc" | 5388 LDFLAGS="$LDFLAGS -Wl,-znocombreloc" |
5751 else | 5389 else |
5752 LDFLAGS="$LDFLAGS -znocombreloc" | 5390 LDFLAGS="$LDFLAGS -znocombreloc" |
5753 fi | 5391 fi |
5754 | 5392 |
5755 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5 | 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5 |
5756 $as_echo_n "checking for -znocombreloc... " >&6; } | 5394 $as_echo_n "checking for -znocombreloc... " >&6; } |
5757 cat >conftest.$ac_ext <<_ACEOF | 5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5396 /* end confdefs.h. */ | |
5758 main(){return 0;} | 5397 main(){return 0;} |
5759 _ACEOF | 5398 _ACEOF |
5760 rm -f conftest.$ac_objext conftest$ac_exeext | 5399 if ac_fn_c_try_link "$LINENO"; then : |
5761 if { (ac_try="$ac_link" | 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5762 case "(($ac_try" in | |
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5764 *) ac_try_echo=$ac_try;; | |
5765 esac | |
5766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5767 $as_echo "$ac_try_echo") >&5 | |
5768 (eval "$ac_link") 2>conftest.er1 | |
5769 ac_status=$? | |
5770 grep -v '^ *+' conftest.er1 >conftest.err | |
5771 rm -f conftest.er1 | |
5772 cat conftest.err >&5 | |
5773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5774 (exit $ac_status); } && { | |
5775 test -z "$ac_c_werror_flag" || | |
5776 test ! -s conftest.err | |
5777 } && test -s conftest$ac_exeext && { | |
5778 test "$cross_compiling" = yes || | |
5779 $as_test_x conftest$ac_exeext | |
5780 }; then | |
5781 { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
5782 $as_echo "yes" >&6; } | 5401 $as_echo "yes" >&6; } |
5783 else | 5402 else |
5784 $as_echo "$as_me: failed program was:" >&5 | 5403 LDFLAGS=$late_LDFLAGS |
5785 sed 's/^/| /' conftest.$ac_ext >&5 | 5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5786 | |
5787 LDFLAGS=$late_LDFLAGS | |
5788 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5789 $as_echo "no" >&6; } | 5405 $as_echo "no" >&6; } |
5790 fi | 5406 fi |
5791 | 5407 rm -f core conftest.err conftest.$ac_objext \ |
5792 rm -rf conftest.dSYM | 5408 conftest$ac_exeext conftest.$ac_ext |
5793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5794 conftest$ac_exeext conftest.$ac_ext | |
5795 | 5409 |
5796 #### Extract some information from the operating system and machine files. | 5410 #### Extract some information from the operating system and machine files. |
5797 | 5411 |
5798 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out | 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out |
5799 - which libraries the lib-src programs will want, and | 5413 - which libraries the lib-src programs will want, and |
5800 - whether the GNU malloc routines are usable..." >&5 | 5414 - whether the GNU malloc routines are usable..." >&5 |
5801 $as_echo "$as_me: checking the machine- and system-dependent files to find out | 5415 $as_echo "$as_me: checking the machine- and system-dependent files to find out |
5802 - which libraries the lib-src programs will want, and | 5416 - which libraries the lib-src programs will want, and |
5803 - whether the GNU malloc routines are usable..." >&6;} | 5417 - whether the GNU malloc routines are usable..." >&6;} |
5820 echo ' | 5434 echo ' |
5821 #include "'${srcdir}'/src/'${opsysfile}'" | 5435 #include "'${srcdir}'/src/'${opsysfile}'" |
5822 #include "'${srcdir}'/src/'${machfile}'" | 5436 #include "'${srcdir}'/src/'${machfile}'" |
5823 | 5437 |
5824 configure___ LIBX=-lX11 | 5438 configure___ LIBX=-lX11 |
5825 | |
5826 configure___ unexec=UNEXEC | |
5827 | 5439 |
5828 #ifdef CANNOT_DUMP | 5440 #ifdef CANNOT_DUMP |
5829 configure___ cannot_dump=yes | 5441 configure___ cannot_dump=yes |
5830 #else | 5442 #else |
5831 configure___ cannot_dump=no | 5443 configure___ cannot_dump=no |
5892 rm ${tempcname} | 5504 rm ${tempcname} |
5893 | 5505 |
5894 | 5506 |
5895 | 5507 |
5896 | 5508 |
5509 UNEXEC_OBJ=unexelf.o | |
5510 case "$opsys" in | |
5511 aix4-2) | |
5512 UNEXEC_OBJ=unexaix.o | |
5513 ;; | |
5514 cygwin) | |
5515 UNEXEC_OBJ=unexcw.o | |
5516 ;; | |
5517 darwin) | |
5518 UNEXEC_OBJ=unexmacosx.o | |
5519 ;; | |
5520 hpux10-20 | hpux11) | |
5521 UNEXEC_OBJ=unexhp9k800.o | |
5522 ;; | |
5523 sol2-10) | |
5524 # Use the Solaris dldump() function, called from unexsol.c, to dump | |
5525 # emacs, instead of the generic ELF dump code found in unexelf.c. | |
5526 # The resulting binary has a complete symbol table, and is better | |
5527 # for debugging and other observability tools (debuggers, pstack, etc). | |
5528 # | |
5529 # If you encounter a problem using dldump(), please consider sending | |
5530 # a message to the OpenSolaris tools-linking mailing list: | |
5531 # http://mail.opensolaris.org/mailman/listinfo/tools-linking | |
5532 # | |
5533 # It is likely that dldump() works with older Solaris too, but this has | |
5534 # not been tested, so for now this change is for Solaris 10 or newer. | |
5535 UNEXEC_OBJ=unexsol.o | |
5536 ;; | |
5537 esac | |
5897 | 5538 |
5898 LD_SWITCH_SYSTEM= | 5539 LD_SWITCH_SYSTEM= |
5899 case "$opsys" in | 5540 case "$opsys" in |
5900 freebsd) | 5541 freebsd) |
5901 ## Let `ld' find image libs and similar things in /usr/local/lib. | 5542 ## Let `ld' find image libs and similar things in /usr/local/lib. |
5940 esac | 5581 esac |
5941 | 5582 |
5942 | 5583 |
5943 C_SWITCH_MACHINE= | 5584 C_SWITCH_MACHINE= |
5944 if test "$machine" = "alpha"; then | 5585 if test "$machine" = "alpha"; then |
5945 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5 | 5586 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default" |
5946 $as_echo_n "checking whether __ELF__ is declared... " >&6; } | 5587 if test "x$ac_cv_have_decl___ELF__" = x""yes; then : |
5947 if test "${ac_cv_have_decl___ELF__+set}" = set; then | 5588 |
5948 $as_echo_n "(cached) " >&6 | 5589 fi |
5949 else | |
5950 cat >conftest.$ac_ext <<_ACEOF | |
5951 /* confdefs.h. */ | |
5952 _ACEOF | |
5953 cat confdefs.h >>conftest.$ac_ext | |
5954 cat >>conftest.$ac_ext <<_ACEOF | |
5955 /* end confdefs.h. */ | |
5956 $ac_includes_default | |
5957 int | |
5958 main () | |
5959 { | |
5960 #ifndef __ELF__ | |
5961 (void) __ELF__; | |
5962 #endif | |
5963 | |
5964 ; | |
5965 return 0; | |
5966 } | |
5967 _ACEOF | |
5968 rm -f conftest.$ac_objext | |
5969 if { (ac_try="$ac_compile" | |
5970 case "(($ac_try" in | |
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5972 *) ac_try_echo=$ac_try;; | |
5973 esac | |
5974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5975 $as_echo "$ac_try_echo") >&5 | |
5976 (eval "$ac_compile") 2>conftest.er1 | |
5977 ac_status=$? | |
5978 grep -v '^ *+' conftest.er1 >conftest.err | |
5979 rm -f conftest.er1 | |
5980 cat conftest.err >&5 | |
5981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5982 (exit $ac_status); } && { | |
5983 test -z "$ac_c_werror_flag" || | |
5984 test ! -s conftest.err | |
5985 } && test -s conftest.$ac_objext; then | |
5986 ac_cv_have_decl___ELF__=yes | |
5987 else | |
5988 $as_echo "$as_me: failed program was:" >&5 | |
5989 sed 's/^/| /' conftest.$ac_ext >&5 | |
5990 | |
5991 ac_cv_have_decl___ELF__=no | |
5992 fi | |
5993 | |
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5995 fi | |
5996 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5 | |
5997 $as_echo "$ac_cv_have_decl___ELF__" >&6; } | |
5998 | 5590 |
5999 if test "$ac_cv_have_decl___ELF__" = "yes"; then | 5591 if test "$ac_cv_have_decl___ELF__" = "yes"; then |
6000 ## With ELF, make sure that all common symbols get allocated to in the | 5592 ## With ELF, make sure that all common symbols get allocated to in the |
6001 ## data section. Otherwise, the dump of temacs may miss variables in | 5593 ## data section. Otherwise, the dump of temacs may miss variables in |
6002 ## the shared library that have been initialized. For example, with | 5594 ## the shared library that have been initialized. For example, with |
6003 ## GNU libc, __malloc_initialized would normally be resolved to the | 5595 ## GNU libc, __malloc_initialized would normally be resolved to the |
6004 ## shared library's .bss section, which is fatal. | 5596 ## shared library's .bss section, which is fatal. |
6005 if test "x$GCC" = "xyes"; then | 5597 if test "x$GCC" = "xyes"; then |
6006 C_SWITCH_MACHINE="-fno-common" | 5598 C_SWITCH_MACHINE="-fno-common" |
6007 else | 5599 else |
6008 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5 | 5600 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5 |
6009 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;} | |
6010 { (exit 1); exit 1; }; } | |
6011 fi | 5601 fi |
5602 else | |
5603 UNEXEC_OBJ=unexalpha.o | |
6012 fi | 5604 fi |
6013 fi | 5605 fi |
5606 | |
6014 | 5607 |
6015 | 5608 |
6016 | 5609 |
6017 C_SWITCH_SYSTEM= | 5610 C_SWITCH_SYSTEM= |
6018 ## Some programs in src produce warnings saying certain subprograms | 5611 ## Some programs in src produce warnings saying certain subprograms |
6051 fi | 5644 fi |
6052 | 5645 |
6053 | 5646 |
6054 | 5647 |
6055 # Check whether --enable-largefile was given. | 5648 # Check whether --enable-largefile was given. |
6056 if test "${enable_largefile+set}" = set; then | 5649 if test "${enable_largefile+set}" = set; then : |
6057 enableval=$enable_largefile; | 5650 enableval=$enable_largefile; |
6058 fi | 5651 fi |
6059 | 5652 |
6060 if test "$enable_largefile" != no; then | 5653 if test "$enable_largefile" != no; then |
6061 | 5654 |
6062 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
6063 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | 5656 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
6064 if test "${ac_cv_sys_largefile_CC+set}" = set; then | 5657 if test "${ac_cv_sys_largefile_CC+set}" = set; then : |
6065 $as_echo_n "(cached) " >&6 | 5658 $as_echo_n "(cached) " >&6 |
6066 else | 5659 else |
6067 ac_cv_sys_largefile_CC=no | 5660 ac_cv_sys_largefile_CC=no |
6068 if test "$GCC" != yes; then | 5661 if test "$GCC" != yes; then |
6069 ac_save_CC=$CC | 5662 ac_save_CC=$CC |
6070 while :; do | 5663 while :; do |
6071 # IRIX 6.2 and later do not support large files by default, | 5664 # IRIX 6.2 and later do not support large files by default, |
6072 # so use the C compiler's -n32 option if that helps. | 5665 # so use the C compiler's -n32 option if that helps. |
6073 cat >conftest.$ac_ext <<_ACEOF | 5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6074 /* confdefs.h. */ | |
6075 _ACEOF | |
6076 cat confdefs.h >>conftest.$ac_ext | |
6077 cat >>conftest.$ac_ext <<_ACEOF | |
6078 /* end confdefs.h. */ | 5667 /* end confdefs.h. */ |
6079 #include <sys/types.h> | 5668 #include <sys/types.h> |
6080 /* Check that off_t can represent 2**63 - 1 correctly. | 5669 /* Check that off_t can represent 2**63 - 1 correctly. |
6081 We can't simply define LARGE_OFF_T to be 9223372036854775807, | 5670 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
6082 since some C++ compilers masquerading as C compilers | 5671 since some C++ compilers masquerading as C compilers |
6091 | 5680 |
6092 ; | 5681 ; |
6093 return 0; | 5682 return 0; |
6094 } | 5683 } |
6095 _ACEOF | 5684 _ACEOF |
6096 rm -f conftest.$ac_objext | 5685 if ac_fn_c_try_compile "$LINENO"; then : |
6097 if { (ac_try="$ac_compile" | |
6098 case "(($ac_try" in | |
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6100 *) ac_try_echo=$ac_try;; | |
6101 esac | |
6102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6103 $as_echo "$ac_try_echo") >&5 | |
6104 (eval "$ac_compile") 2>conftest.er1 | |
6105 ac_status=$? | |
6106 grep -v '^ *+' conftest.er1 >conftest.err | |
6107 rm -f conftest.er1 | |
6108 cat conftest.err >&5 | |
6109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6110 (exit $ac_status); } && { | |
6111 test -z "$ac_c_werror_flag" || | |
6112 test ! -s conftest.err | |
6113 } && test -s conftest.$ac_objext; then | |
6114 break | 5686 break |
6115 else | 5687 fi |
6116 $as_echo "$as_me: failed program was:" >&5 | |
6117 sed 's/^/| /' conftest.$ac_ext >&5 | |
6118 | |
6119 | |
6120 fi | |
6121 | |
6122 rm -f core conftest.err conftest.$ac_objext | 5688 rm -f core conftest.err conftest.$ac_objext |
6123 CC="$CC -n32" | 5689 CC="$CC -n32" |
6124 rm -f conftest.$ac_objext | 5690 if ac_fn_c_try_compile "$LINENO"; then : |
6125 if { (ac_try="$ac_compile" | |
6126 case "(($ac_try" in | |
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6128 *) ac_try_echo=$ac_try;; | |
6129 esac | |
6130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6131 $as_echo "$ac_try_echo") >&5 | |
6132 (eval "$ac_compile") 2>conftest.er1 | |
6133 ac_status=$? | |
6134 grep -v '^ *+' conftest.er1 >conftest.err | |
6135 rm -f conftest.er1 | |
6136 cat conftest.err >&5 | |
6137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6138 (exit $ac_status); } && { | |
6139 test -z "$ac_c_werror_flag" || | |
6140 test ! -s conftest.err | |
6141 } && test -s conftest.$ac_objext; then | |
6142 ac_cv_sys_largefile_CC=' -n32'; break | 5691 ac_cv_sys_largefile_CC=' -n32'; break |
6143 else | 5692 fi |
6144 $as_echo "$as_me: failed program was:" >&5 | |
6145 sed 's/^/| /' conftest.$ac_ext >&5 | |
6146 | |
6147 | |
6148 fi | |
6149 | |
6150 rm -f core conftest.err conftest.$ac_objext | 5693 rm -f core conftest.err conftest.$ac_objext |
6151 break | 5694 break |
6152 done | 5695 done |
6153 CC=$ac_save_CC | 5696 CC=$ac_save_CC |
6154 rm -f conftest.$ac_ext | 5697 rm -f conftest.$ac_ext |
6155 fi | 5698 fi |
6156 fi | 5699 fi |
6157 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
6158 $as_echo "$ac_cv_sys_largefile_CC" >&6; } | 5701 $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
6159 if test "$ac_cv_sys_largefile_CC" != no; then | 5702 if test "$ac_cv_sys_largefile_CC" != no; then |
6160 CC=$CC$ac_cv_sys_largefile_CC | 5703 CC=$CC$ac_cv_sys_largefile_CC |
6161 fi | 5704 fi |
6162 | 5705 |
6163 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
6164 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | 5707 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
6165 if test "${ac_cv_sys_file_offset_bits+set}" = set; then | 5708 if test "${ac_cv_sys_file_offset_bits+set}" = set; then : |
6166 $as_echo_n "(cached) " >&6 | 5709 $as_echo_n "(cached) " >&6 |
6167 else | 5710 else |
6168 while :; do | 5711 while :; do |
6169 cat >conftest.$ac_ext <<_ACEOF | 5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6170 /* confdefs.h. */ | |
6171 _ACEOF | |
6172 cat confdefs.h >>conftest.$ac_ext | |
6173 cat >>conftest.$ac_ext <<_ACEOF | |
6174 /* end confdefs.h. */ | 5713 /* end confdefs.h. */ |
6175 #include <sys/types.h> | 5714 #include <sys/types.h> |
6176 /* Check that off_t can represent 2**63 - 1 correctly. | 5715 /* Check that off_t can represent 2**63 - 1 correctly. |
6177 We can't simply define LARGE_OFF_T to be 9223372036854775807, | 5716 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
6178 since some C++ compilers masquerading as C compilers | 5717 since some C++ compilers masquerading as C compilers |
6187 | 5726 |
6188 ; | 5727 ; |
6189 return 0; | 5728 return 0; |
6190 } | 5729 } |
6191 _ACEOF | 5730 _ACEOF |
6192 rm -f conftest.$ac_objext | 5731 if ac_fn_c_try_compile "$LINENO"; then : |
6193 if { (ac_try="$ac_compile" | |
6194 case "(($ac_try" in | |
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6196 *) ac_try_echo=$ac_try;; | |
6197 esac | |
6198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6199 $as_echo "$ac_try_echo") >&5 | |
6200 (eval "$ac_compile") 2>conftest.er1 | |
6201 ac_status=$? | |
6202 grep -v '^ *+' conftest.er1 >conftest.err | |
6203 rm -f conftest.er1 | |
6204 cat conftest.err >&5 | |
6205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6206 (exit $ac_status); } && { | |
6207 test -z "$ac_c_werror_flag" || | |
6208 test ! -s conftest.err | |
6209 } && test -s conftest.$ac_objext; then | |
6210 ac_cv_sys_file_offset_bits=no; break | 5732 ac_cv_sys_file_offset_bits=no; break |
6211 else | 5733 fi |
6212 $as_echo "$as_me: failed program was:" >&5 | |
6213 sed 's/^/| /' conftest.$ac_ext >&5 | |
6214 | |
6215 | |
6216 fi | |
6217 | |
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6219 cat >conftest.$ac_ext <<_ACEOF | 5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6220 /* confdefs.h. */ | |
6221 _ACEOF | |
6222 cat confdefs.h >>conftest.$ac_ext | |
6223 cat >>conftest.$ac_ext <<_ACEOF | |
6224 /* end confdefs.h. */ | 5736 /* end confdefs.h. */ |
6225 #define _FILE_OFFSET_BITS 64 | 5737 #define _FILE_OFFSET_BITS 64 |
6226 #include <sys/types.h> | 5738 #include <sys/types.h> |
6227 /* Check that off_t can represent 2**63 - 1 correctly. | 5739 /* Check that off_t can represent 2**63 - 1 correctly. |
6228 We can't simply define LARGE_OFF_T to be 9223372036854775807, | 5740 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
6238 | 5750 |
6239 ; | 5751 ; |
6240 return 0; | 5752 return 0; |
6241 } | 5753 } |
6242 _ACEOF | 5754 _ACEOF |
6243 rm -f conftest.$ac_objext | 5755 if ac_fn_c_try_compile "$LINENO"; then : |
6244 if { (ac_try="$ac_compile" | |
6245 case "(($ac_try" in | |
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6247 *) ac_try_echo=$ac_try;; | |
6248 esac | |
6249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6250 $as_echo "$ac_try_echo") >&5 | |
6251 (eval "$ac_compile") 2>conftest.er1 | |
6252 ac_status=$? | |
6253 grep -v '^ *+' conftest.er1 >conftest.err | |
6254 rm -f conftest.er1 | |
6255 cat conftest.err >&5 | |
6256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6257 (exit $ac_status); } && { | |
6258 test -z "$ac_c_werror_flag" || | |
6259 test ! -s conftest.err | |
6260 } && test -s conftest.$ac_objext; then | |
6261 ac_cv_sys_file_offset_bits=64; break | 5756 ac_cv_sys_file_offset_bits=64; break |
6262 else | 5757 fi |
6263 $as_echo "$as_me: failed program was:" >&5 | |
6264 sed 's/^/| /' conftest.$ac_ext >&5 | |
6265 | |
6266 | |
6267 fi | |
6268 | |
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6270 ac_cv_sys_file_offset_bits=unknown | 5759 ac_cv_sys_file_offset_bits=unknown |
6271 break | 5760 break |
6272 done | 5761 done |
6273 fi | 5762 fi |
6274 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
6275 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | 5764 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
6276 case $ac_cv_sys_file_offset_bits in #( | 5765 case $ac_cv_sys_file_offset_bits in #( |
6277 no | unknown) ;; | 5766 no | unknown) ;; |
6278 *) | 5767 *) |
6279 cat >>confdefs.h <<_ACEOF | 5768 cat >>confdefs.h <<_ACEOF |
6281 _ACEOF | 5770 _ACEOF |
6282 ;; | 5771 ;; |
6283 esac | 5772 esac |
6284 rm -rf conftest* | 5773 rm -rf conftest* |
6285 if test $ac_cv_sys_file_offset_bits = unknown; then | 5774 if test $ac_cv_sys_file_offset_bits = unknown; then |
6286 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
6287 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | 5776 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
6288 if test "${ac_cv_sys_large_files+set}" = set; then | 5777 if test "${ac_cv_sys_large_files+set}" = set; then : |
6289 $as_echo_n "(cached) " >&6 | 5778 $as_echo_n "(cached) " >&6 |
6290 else | 5779 else |
6291 while :; do | 5780 while :; do |
6292 cat >conftest.$ac_ext <<_ACEOF | 5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6293 /* confdefs.h. */ | |
6294 _ACEOF | |
6295 cat confdefs.h >>conftest.$ac_ext | |
6296 cat >>conftest.$ac_ext <<_ACEOF | |
6297 /* end confdefs.h. */ | 5782 /* end confdefs.h. */ |
6298 #include <sys/types.h> | 5783 #include <sys/types.h> |
6299 /* Check that off_t can represent 2**63 - 1 correctly. | 5784 /* Check that off_t can represent 2**63 - 1 correctly. |
6300 We can't simply define LARGE_OFF_T to be 9223372036854775807, | 5785 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
6301 since some C++ compilers masquerading as C compilers | 5786 since some C++ compilers masquerading as C compilers |
6310 | 5795 |
6311 ; | 5796 ; |
6312 return 0; | 5797 return 0; |
6313 } | 5798 } |
6314 _ACEOF | 5799 _ACEOF |
6315 rm -f conftest.$ac_objext | 5800 if ac_fn_c_try_compile "$LINENO"; then : |
6316 if { (ac_try="$ac_compile" | |
6317 case "(($ac_try" in | |
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6319 *) ac_try_echo=$ac_try;; | |
6320 esac | |
6321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6322 $as_echo "$ac_try_echo") >&5 | |
6323 (eval "$ac_compile") 2>conftest.er1 | |
6324 ac_status=$? | |
6325 grep -v '^ *+' conftest.er1 >conftest.err | |
6326 rm -f conftest.er1 | |
6327 cat conftest.err >&5 | |
6328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6329 (exit $ac_status); } && { | |
6330 test -z "$ac_c_werror_flag" || | |
6331 test ! -s conftest.err | |
6332 } && test -s conftest.$ac_objext; then | |
6333 ac_cv_sys_large_files=no; break | 5801 ac_cv_sys_large_files=no; break |
6334 else | 5802 fi |
6335 $as_echo "$as_me: failed program was:" >&5 | |
6336 sed 's/^/| /' conftest.$ac_ext >&5 | |
6337 | |
6338 | |
6339 fi | |
6340 | |
6341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6342 cat >conftest.$ac_ext <<_ACEOF | 5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6343 /* confdefs.h. */ | |
6344 _ACEOF | |
6345 cat confdefs.h >>conftest.$ac_ext | |
6346 cat >>conftest.$ac_ext <<_ACEOF | |
6347 /* end confdefs.h. */ | 5805 /* end confdefs.h. */ |
6348 #define _LARGE_FILES 1 | 5806 #define _LARGE_FILES 1 |
6349 #include <sys/types.h> | 5807 #include <sys/types.h> |
6350 /* Check that off_t can represent 2**63 - 1 correctly. | 5808 /* Check that off_t can represent 2**63 - 1 correctly. |
6351 We can't simply define LARGE_OFF_T to be 9223372036854775807, | 5809 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
6361 | 5819 |
6362 ; | 5820 ; |
6363 return 0; | 5821 return 0; |
6364 } | 5822 } |
6365 _ACEOF | 5823 _ACEOF |
6366 rm -f conftest.$ac_objext | 5824 if ac_fn_c_try_compile "$LINENO"; then : |
6367 if { (ac_try="$ac_compile" | |
6368 case "(($ac_try" in | |
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6370 *) ac_try_echo=$ac_try;; | |
6371 esac | |
6372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6373 $as_echo "$ac_try_echo") >&5 | |
6374 (eval "$ac_compile") 2>conftest.er1 | |
6375 ac_status=$? | |
6376 grep -v '^ *+' conftest.er1 >conftest.err | |
6377 rm -f conftest.er1 | |
6378 cat conftest.err >&5 | |
6379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6380 (exit $ac_status); } && { | |
6381 test -z "$ac_c_werror_flag" || | |
6382 test ! -s conftest.err | |
6383 } && test -s conftest.$ac_objext; then | |
6384 ac_cv_sys_large_files=1; break | 5825 ac_cv_sys_large_files=1; break |
6385 else | 5826 fi |
6386 $as_echo "$as_me: failed program was:" >&5 | |
6387 sed 's/^/| /' conftest.$ac_ext >&5 | |
6388 | |
6389 | |
6390 fi | |
6391 | |
6392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 5827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6393 ac_cv_sys_large_files=unknown | 5828 ac_cv_sys_large_files=unknown |
6394 break | 5829 break |
6395 done | 5830 done |
6396 fi | 5831 fi |
6397 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
6398 $as_echo "$ac_cv_sys_large_files" >&6; } | 5833 $as_echo "$ac_cv_sys_large_files" >&6; } |
6399 case $ac_cv_sys_large_files in #( | 5834 case $ac_cv_sys_large_files in #( |
6400 no | unknown) ;; | 5835 no | unknown) ;; |
6401 *) | 5836 *) |
6402 cat >>confdefs.h <<_ACEOF | 5837 cat >>confdefs.h <<_ACEOF |
6438 else | 5873 else |
6439 | 5874 |
6440 ## Some platforms don't use any of these files, so it is not | 5875 ## Some platforms don't use any of these files, so it is not |
6441 ## appropriate to put this test outside the if block. | 5876 ## appropriate to put this test outside the if block. |
6442 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ | 5877 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ |
6443 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5 | 5878 as_fn_error "crt*.o not found in specified location." "$LINENO" 5 |
6444 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;} | |
6445 { (exit 1); exit 1; }; } | |
6446 | 5879 |
6447 fi | 5880 fi |
6448 | 5881 |
6449 | 5882 |
6450 | 5883 |
6491 | 5924 |
6492 | 5925 |
6493 | 5926 |
6494 if test "${with_sound}" != "no"; then | 5927 if test "${with_sound}" != "no"; then |
6495 # Sound support for GNU/Linux and the free BSDs. | 5928 # Sound support for GNU/Linux and the free BSDs. |
6496 | 5929 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h |
6497 | 5930 do : |
6498 | 5931 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6499 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | 5932 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
6500 do | 5933 eval as_val=\$$as_ac_Header |
6501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 5934 if test "x$as_val" = x""yes; then : |
6502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6503 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6504 $as_echo_n "checking for $ac_header... " >&6; } | |
6505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6506 $as_echo_n "(cached) " >&6 | |
6507 fi | |
6508 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6509 $as_echo "$as_val"'` | |
6510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6511 $as_echo "$ac_res" >&6; } | |
6512 else | |
6513 # Is the header compilable? | |
6514 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6515 $as_echo_n "checking $ac_header usability... " >&6; } | |
6516 cat >conftest.$ac_ext <<_ACEOF | |
6517 /* confdefs.h. */ | |
6518 _ACEOF | |
6519 cat confdefs.h >>conftest.$ac_ext | |
6520 cat >>conftest.$ac_ext <<_ACEOF | |
6521 /* end confdefs.h. */ | |
6522 $ac_includes_default | |
6523 #include <$ac_header> | |
6524 _ACEOF | |
6525 rm -f conftest.$ac_objext | |
6526 if { (ac_try="$ac_compile" | |
6527 case "(($ac_try" in | |
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6529 *) ac_try_echo=$ac_try;; | |
6530 esac | |
6531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6532 $as_echo "$ac_try_echo") >&5 | |
6533 (eval "$ac_compile") 2>conftest.er1 | |
6534 ac_status=$? | |
6535 grep -v '^ *+' conftest.er1 >conftest.err | |
6536 rm -f conftest.er1 | |
6537 cat conftest.err >&5 | |
6538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6539 (exit $ac_status); } && { | |
6540 test -z "$ac_c_werror_flag" || | |
6541 test ! -s conftest.err | |
6542 } && test -s conftest.$ac_objext; then | |
6543 ac_header_compiler=yes | |
6544 else | |
6545 $as_echo "$as_me: failed program was:" >&5 | |
6546 sed 's/^/| /' conftest.$ac_ext >&5 | |
6547 | |
6548 ac_header_compiler=no | |
6549 fi | |
6550 | |
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6552 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6553 $as_echo "$ac_header_compiler" >&6; } | |
6554 | |
6555 # Is the header present? | |
6556 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6557 $as_echo_n "checking $ac_header presence... " >&6; } | |
6558 cat >conftest.$ac_ext <<_ACEOF | |
6559 /* confdefs.h. */ | |
6560 _ACEOF | |
6561 cat confdefs.h >>conftest.$ac_ext | |
6562 cat >>conftest.$ac_ext <<_ACEOF | |
6563 /* end confdefs.h. */ | |
6564 #include <$ac_header> | |
6565 _ACEOF | |
6566 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6567 case "(($ac_try" in | |
6568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6569 *) ac_try_echo=$ac_try;; | |
6570 esac | |
6571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6572 $as_echo "$ac_try_echo") >&5 | |
6573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6574 ac_status=$? | |
6575 grep -v '^ *+' conftest.er1 >conftest.err | |
6576 rm -f conftest.er1 | |
6577 cat conftest.err >&5 | |
6578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6579 (exit $ac_status); } >/dev/null && { | |
6580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6581 test ! -s conftest.err | |
6582 }; then | |
6583 ac_header_preproc=yes | |
6584 else | |
6585 $as_echo "$as_me: failed program was:" >&5 | |
6586 sed 's/^/| /' conftest.$ac_ext >&5 | |
6587 | |
6588 ac_header_preproc=no | |
6589 fi | |
6590 | |
6591 rm -f conftest.err conftest.$ac_ext | |
6592 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6593 $as_echo "$ac_header_preproc" >&6; } | |
6594 | |
6595 # So? What about this header? | |
6596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6597 yes:no: ) | |
6598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6599 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6602 ac_header_preproc=yes | |
6603 ;; | |
6604 no:yes:* ) | |
6605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6606 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6608 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6610 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6612 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6616 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6617 | |
6618 ;; | |
6619 esac | |
6620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6621 $as_echo_n "checking for $ac_header... " >&6; } | |
6622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6623 $as_echo_n "(cached) " >&6 | |
6624 else | |
6625 eval "$as_ac_Header=\$ac_header_preproc" | |
6626 fi | |
6627 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6628 $as_echo "$as_val"'` | |
6629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6630 $as_echo "$ac_res" >&6; } | |
6631 | |
6632 fi | |
6633 if test `eval 'as_val=${'$as_ac_Header'} | |
6634 $as_echo "$as_val"'` = yes; then | |
6635 cat >>confdefs.h <<_ACEOF | 5935 cat >>confdefs.h <<_ACEOF |
6636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 5936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6637 _ACEOF | 5937 _ACEOF |
6638 | 5938 |
6639 fi | 5939 fi |
6640 | 5940 |
6641 done | 5941 done |
6642 | 5942 |
6643 # Emulation library used on NetBSD. | 5943 # Emulation library used on NetBSD. |
6644 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 | 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 |
6645 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } | 5945 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } |
6646 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | 5946 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : |
6647 $as_echo_n "(cached) " >&6 | 5947 $as_echo_n "(cached) " >&6 |
6648 else | 5948 else |
6649 ac_check_lib_save_LIBS=$LIBS | 5949 ac_check_lib_save_LIBS=$LIBS |
6650 LIBS="-lossaudio $LIBS" | 5950 LIBS="-lossaudio $LIBS" |
6651 cat >conftest.$ac_ext <<_ACEOF | 5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6652 /* confdefs.h. */ | |
6653 _ACEOF | |
6654 cat confdefs.h >>conftest.$ac_ext | |
6655 cat >>conftest.$ac_ext <<_ACEOF | |
6656 /* end confdefs.h. */ | 5952 /* end confdefs.h. */ |
6657 | 5953 |
6658 /* Override any GCC internal prototype to avoid an error. | 5954 /* Override any GCC internal prototype to avoid an error. |
6659 Use char because int might match the return type of a GCC | 5955 Use char because int might match the return type of a GCC |
6660 builtin and then its argument prototype would still apply. */ | 5956 builtin and then its argument prototype would still apply. */ |
6668 return _oss_ioctl (); | 5964 return _oss_ioctl (); |
6669 ; | 5965 ; |
6670 return 0; | 5966 return 0; |
6671 } | 5967 } |
6672 _ACEOF | 5968 _ACEOF |
6673 rm -f conftest.$ac_objext conftest$ac_exeext | 5969 if ac_fn_c_try_link "$LINENO"; then : |
6674 if { (ac_try="$ac_link" | |
6675 case "(($ac_try" in | |
6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6677 *) ac_try_echo=$ac_try;; | |
6678 esac | |
6679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6680 $as_echo "$ac_try_echo") >&5 | |
6681 (eval "$ac_link") 2>conftest.er1 | |
6682 ac_status=$? | |
6683 grep -v '^ *+' conftest.er1 >conftest.err | |
6684 rm -f conftest.er1 | |
6685 cat conftest.err >&5 | |
6686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6687 (exit $ac_status); } && { | |
6688 test -z "$ac_c_werror_flag" || | |
6689 test ! -s conftest.err | |
6690 } && test -s conftest$ac_exeext && { | |
6691 test "$cross_compiling" = yes || | |
6692 $as_test_x conftest$ac_exeext | |
6693 }; then | |
6694 ac_cv_lib_ossaudio__oss_ioctl=yes | 5970 ac_cv_lib_ossaudio__oss_ioctl=yes |
6695 else | 5971 else |
6696 $as_echo "$as_me: failed program was:" >&5 | 5972 ac_cv_lib_ossaudio__oss_ioctl=no |
6697 sed 's/^/| /' conftest.$ac_ext >&5 | 5973 fi |
6698 | 5974 rm -f core conftest.err conftest.$ac_objext \ |
6699 ac_cv_lib_ossaudio__oss_ioctl=no | 5975 conftest$ac_exeext conftest.$ac_ext |
6700 fi | |
6701 | |
6702 rm -rf conftest.dSYM | |
6703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6704 conftest$ac_exeext conftest.$ac_ext | |
6705 LIBS=$ac_check_lib_save_LIBS | 5976 LIBS=$ac_check_lib_save_LIBS |
6706 fi | 5977 fi |
6707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 | 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
6708 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } | 5979 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } |
6709 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | 5980 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then : |
6710 LIBSOUND=-lossaudio | 5981 LIBSOUND=-lossaudio |
6711 else | 5982 else |
6712 LIBSOUND= | 5983 LIBSOUND= |
6713 fi | 5984 fi |
6714 | 5985 |
6719 | 5990 |
6720 succeeded=no | 5991 succeeded=no |
6721 | 5992 |
6722 # Extract the first word of "pkg-config", so it can be a program name with args. | 5993 # Extract the first word of "pkg-config", so it can be a program name with args. |
6723 set dummy pkg-config; ac_word=$2 | 5994 set dummy pkg-config; ac_word=$2 |
6724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6725 $as_echo_n "checking for $ac_word... " >&6; } | 5996 $as_echo_n "checking for $ac_word... " >&6; } |
6726 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 5997 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
6727 $as_echo_n "(cached) " >&6 | 5998 $as_echo_n "(cached) " >&6 |
6728 else | 5999 else |
6729 case $PKG_CONFIG in | 6000 case $PKG_CONFIG in |
6730 [\\/]* | ?:[\\/]*) | 6001 [\\/]* | ?:[\\/]*) |
6731 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 6002 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6735 for as_dir in $PATH | 6006 for as_dir in $PATH |
6736 do | 6007 do |
6737 IFS=$as_save_IFS | 6008 IFS=$as_save_IFS |
6738 test -z "$as_dir" && as_dir=. | 6009 test -z "$as_dir" && as_dir=. |
6739 for ac_exec_ext in '' $ac_executable_extensions; do | 6010 for ac_exec_ext in '' $ac_executable_extensions; do |
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 6011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6741 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 6012 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
6742 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 6013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6743 break 2 | 6014 break 2 |
6744 fi | 6015 fi |
6745 done | 6016 done |
6746 done | 6017 done |
6747 IFS=$as_save_IFS | 6018 IFS=$as_save_IFS |
6748 | 6019 |
6749 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 6020 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
6750 ;; | 6021 ;; |
6751 esac | 6022 esac |
6752 fi | 6023 fi |
6753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 6024 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
6754 if test -n "$PKG_CONFIG"; then | 6025 if test -n "$PKG_CONFIG"; then |
6755 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
6756 $as_echo "$PKG_CONFIG" >&6; } | 6027 $as_echo "$PKG_CONFIG" >&6; } |
6757 else | 6028 else |
6758 { $as_echo "$as_me:$LINENO: result: no" >&5 | 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6759 $as_echo "no" >&6; } | 6030 $as_echo "no" >&6; } |
6760 fi | 6031 fi |
6761 | 6032 |
6762 | 6033 |
6763 | 6034 |
6764 if test "$PKG_CONFIG" = "no" ; then | 6035 if test "$PKG_CONFIG" = "no" ; then |
6765 HAVE_ALSA=no | 6036 HAVE_ALSA=no |
6766 else | 6037 else |
6767 PKG_CONFIG_MIN_VERSION=0.9.0 | 6038 PKG_CONFIG_MIN_VERSION=0.9.0 |
6768 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 6039 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
6769 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5 | 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5 |
6770 $as_echo_n "checking for $ALSA_MODULES... " >&6; } | 6041 $as_echo_n "checking for $ALSA_MODULES... " >&6; } |
6771 | 6042 |
6772 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then | 6043 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then |
6773 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6774 $as_echo "yes" >&6; } | 6045 $as_echo "yes" >&6; } |
6775 succeeded=yes | 6046 succeeded=yes |
6776 | 6047 |
6777 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5 | 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5 |
6778 $as_echo_n "checking ALSA_CFLAGS... " >&6; } | 6049 $as_echo_n "checking ALSA_CFLAGS... " >&6; } |
6779 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` | 6050 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` |
6780 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5 | 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5 |
6781 $as_echo "$ALSA_CFLAGS" >&6; } | 6052 $as_echo "$ALSA_CFLAGS" >&6; } |
6782 | 6053 |
6783 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5 | 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5 |
6784 $as_echo_n "checking ALSA_LIBS... " >&6; } | 6055 $as_echo_n "checking ALSA_LIBS... " >&6; } |
6785 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` | 6056 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` |
6786 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5 | 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5 |
6787 $as_echo "$ALSA_LIBS" >&6; } | 6058 $as_echo "$ALSA_LIBS" >&6; } |
6788 else | 6059 else |
6789 { $as_echo "$as_me:$LINENO: result: no" >&5 | 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6790 $as_echo "no" >&6; } | 6061 $as_echo "no" >&6; } |
6791 ALSA_CFLAGS="" | 6062 ALSA_CFLAGS="" |
6792 ALSA_LIBS="" | 6063 ALSA_LIBS="" |
6793 ## If we have a custom action on failure, don't print errors, but | 6064 ## If we have a custom action on failure, don't print errors, but |
6794 ## do set a variable so people can do so. | 6065 ## do set a variable so people can do so. |
6813 if test $HAVE_ALSA = yes; then | 6084 if test $HAVE_ALSA = yes; then |
6814 SAVE_CFLAGS="$CFLAGS" | 6085 SAVE_CFLAGS="$CFLAGS" |
6815 SAVE_LDFLAGS="$LDFLAGS" | 6086 SAVE_LDFLAGS="$LDFLAGS" |
6816 CFLAGS="$ALSA_CFLAGS $CFLAGS" | 6087 CFLAGS="$ALSA_CFLAGS $CFLAGS" |
6817 LDFLAGS="$ALSA_LIBS $LDFLAGS" | 6088 LDFLAGS="$ALSA_LIBS $LDFLAGS" |
6818 cat >conftest.$ac_ext <<_ACEOF | 6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6819 /* confdefs.h. */ | |
6820 _ACEOF | |
6821 cat confdefs.h >>conftest.$ac_ext | |
6822 cat >>conftest.$ac_ext <<_ACEOF | |
6823 /* end confdefs.h. */ | 6090 /* end confdefs.h. */ |
6824 #include <asoundlib.h> | 6091 #include <asoundlib.h> |
6825 int | 6092 int |
6826 main () | 6093 main () |
6827 { | 6094 { |
6828 snd_lib_error_set_handler (0); | 6095 snd_lib_error_set_handler (0); |
6829 ; | 6096 ; |
6830 return 0; | 6097 return 0; |
6831 } | 6098 } |
6832 _ACEOF | 6099 _ACEOF |
6833 rm -f conftest.$ac_objext | 6100 if ac_fn_c_try_compile "$LINENO"; then : |
6834 if { (ac_try="$ac_compile" | |
6835 case "(($ac_try" in | |
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6837 *) ac_try_echo=$ac_try;; | |
6838 esac | |
6839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6840 $as_echo "$ac_try_echo") >&5 | |
6841 (eval "$ac_compile") 2>conftest.er1 | |
6842 ac_status=$? | |
6843 grep -v '^ *+' conftest.er1 >conftest.err | |
6844 rm -f conftest.er1 | |
6845 cat conftest.err >&5 | |
6846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6847 (exit $ac_status); } && { | |
6848 test -z "$ac_c_werror_flag" || | |
6849 test ! -s conftest.err | |
6850 } && test -s conftest.$ac_objext; then | |
6851 emacs_alsa_normal=yes | 6101 emacs_alsa_normal=yes |
6852 else | 6102 else |
6853 $as_echo "$as_me: failed program was:" >&5 | 6103 emacs_alsa_normal=no |
6854 sed 's/^/| /' conftest.$ac_ext >&5 | 6104 fi |
6855 | |
6856 emacs_alsa_normal=no | |
6857 fi | |
6858 | |
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6860 if test "$emacs_alsa_normal" != yes; then | 6106 if test "$emacs_alsa_normal" != yes; then |
6861 cat >conftest.$ac_ext <<_ACEOF | 6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6862 /* confdefs.h. */ | |
6863 _ACEOF | |
6864 cat confdefs.h >>conftest.$ac_ext | |
6865 cat >>conftest.$ac_ext <<_ACEOF | |
6866 /* end confdefs.h. */ | 6108 /* end confdefs.h. */ |
6867 #include <alsa/asoundlib.h> | 6109 #include <alsa/asoundlib.h> |
6868 int | 6110 int |
6869 main () | 6111 main () |
6870 { | 6112 { |
6871 snd_lib_error_set_handler (0); | 6113 snd_lib_error_set_handler (0); |
6872 ; | 6114 ; |
6873 return 0; | 6115 return 0; |
6874 } | 6116 } |
6875 _ACEOF | 6117 _ACEOF |
6876 rm -f conftest.$ac_objext | 6118 if ac_fn_c_try_compile "$LINENO"; then : |
6877 if { (ac_try="$ac_compile" | |
6878 case "(($ac_try" in | |
6879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6880 *) ac_try_echo=$ac_try;; | |
6881 esac | |
6882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6883 $as_echo "$ac_try_echo") >&5 | |
6884 (eval "$ac_compile") 2>conftest.er1 | |
6885 ac_status=$? | |
6886 grep -v '^ *+' conftest.er1 >conftest.err | |
6887 rm -f conftest.er1 | |
6888 cat conftest.err >&5 | |
6889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6890 (exit $ac_status); } && { | |
6891 test -z "$ac_c_werror_flag" || | |
6892 test ! -s conftest.err | |
6893 } && test -s conftest.$ac_objext; then | |
6894 emacs_alsa_subdir=yes | 6119 emacs_alsa_subdir=yes |
6895 else | 6120 else |
6896 $as_echo "$as_me: failed program was:" >&5 | 6121 emacs_alsa_subdir=no |
6897 sed 's/^/| /' conftest.$ac_ext >&5 | 6122 fi |
6898 | |
6899 emacs_alsa_subdir=no | |
6900 fi | |
6901 | |
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6903 if test "$emacs_alsa_subdir" != yes; then | 6124 if test "$emacs_alsa_subdir" != yes; then |
6904 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5 | 6125 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 |
6905 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;} | |
6906 { (exit 1); exit 1; }; } | |
6907 fi | 6126 fi |
6908 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" | 6127 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" |
6909 fi | 6128 fi |
6910 | 6129 |
6911 CFLAGS="$SAVE_CFLAGS" | 6130 CFLAGS="$SAVE_CFLAGS" |
6912 LDFLAGS="$SAVE_LDFLAGS" | 6131 LDFLAGS="$SAVE_LDFLAGS" |
6913 LIBSOUND="$LIBSOUND $ALSA_LIBS" | 6132 LIBSOUND="$LIBSOUND $ALSA_LIBS" |
6914 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" | 6133 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" |
6915 | 6134 |
6916 cat >>confdefs.h <<\_ACEOF | 6135 $as_echo "#define HAVE_ALSA 1" >>confdefs.h |
6917 #define HAVE_ALSA 1 | |
6918 _ACEOF | |
6919 | 6136 |
6920 fi | 6137 fi |
6921 | 6138 |
6922 fi | 6139 fi |
6923 | |
6924 | |
6925 | |
6926 | |
6927 | |
6928 | |
6929 | |
6930 | |
6931 | |
6932 | |
6933 | |
6934 | |
6935 | |
6936 | |
6937 | |
6938 | |
6939 | |
6940 | |
6941 | |
6942 | |
6943 | |
6944 | |
6945 | |
6946 | |
6947 | |
6948 | 6140 |
6949 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | 6141 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
6950 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 6142 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
6951 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ | 6143 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
6952 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ | 6144 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ |
6953 sys/utsname.h pwd.h utmp.h | 6145 sys/utsname.h pwd.h utmp.h |
6954 do | 6146 do : |
6955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 6147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 6148 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
6957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | 6149 eval as_val=\$$as_ac_Header |
6958 $as_echo_n "checking for $ac_header... " >&6; } | 6150 if test "x$as_val" = x""yes; then : |
6959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6960 $as_echo_n "(cached) " >&6 | |
6961 fi | |
6962 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6963 $as_echo "$as_val"'` | |
6964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6965 $as_echo "$ac_res" >&6; } | |
6966 else | |
6967 # Is the header compilable? | |
6968 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6969 $as_echo_n "checking $ac_header usability... " >&6; } | |
6970 cat >conftest.$ac_ext <<_ACEOF | |
6971 /* confdefs.h. */ | |
6972 _ACEOF | |
6973 cat confdefs.h >>conftest.$ac_ext | |
6974 cat >>conftest.$ac_ext <<_ACEOF | |
6975 /* end confdefs.h. */ | |
6976 $ac_includes_default | |
6977 #include <$ac_header> | |
6978 _ACEOF | |
6979 rm -f conftest.$ac_objext | |
6980 if { (ac_try="$ac_compile" | |
6981 case "(($ac_try" in | |
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6983 *) ac_try_echo=$ac_try;; | |
6984 esac | |
6985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6986 $as_echo "$ac_try_echo") >&5 | |
6987 (eval "$ac_compile") 2>conftest.er1 | |
6988 ac_status=$? | |
6989 grep -v '^ *+' conftest.er1 >conftest.err | |
6990 rm -f conftest.er1 | |
6991 cat conftest.err >&5 | |
6992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6993 (exit $ac_status); } && { | |
6994 test -z "$ac_c_werror_flag" || | |
6995 test ! -s conftest.err | |
6996 } && test -s conftest.$ac_objext; then | |
6997 ac_header_compiler=yes | |
6998 else | |
6999 $as_echo "$as_me: failed program was:" >&5 | |
7000 sed 's/^/| /' conftest.$ac_ext >&5 | |
7001 | |
7002 ac_header_compiler=no | |
7003 fi | |
7004 | |
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7006 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7007 $as_echo "$ac_header_compiler" >&6; } | |
7008 | |
7009 # Is the header present? | |
7010 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7011 $as_echo_n "checking $ac_header presence... " >&6; } | |
7012 cat >conftest.$ac_ext <<_ACEOF | |
7013 /* confdefs.h. */ | |
7014 _ACEOF | |
7015 cat confdefs.h >>conftest.$ac_ext | |
7016 cat >>conftest.$ac_ext <<_ACEOF | |
7017 /* end confdefs.h. */ | |
7018 #include <$ac_header> | |
7019 _ACEOF | |
7020 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7021 case "(($ac_try" in | |
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7023 *) ac_try_echo=$ac_try;; | |
7024 esac | |
7025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7026 $as_echo "$ac_try_echo") >&5 | |
7027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7028 ac_status=$? | |
7029 grep -v '^ *+' conftest.er1 >conftest.err | |
7030 rm -f conftest.er1 | |
7031 cat conftest.err >&5 | |
7032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7033 (exit $ac_status); } >/dev/null && { | |
7034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7035 test ! -s conftest.err | |
7036 }; then | |
7037 ac_header_preproc=yes | |
7038 else | |
7039 $as_echo "$as_me: failed program was:" >&5 | |
7040 sed 's/^/| /' conftest.$ac_ext >&5 | |
7041 | |
7042 ac_header_preproc=no | |
7043 fi | |
7044 | |
7045 rm -f conftest.err conftest.$ac_ext | |
7046 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7047 $as_echo "$ac_header_preproc" >&6; } | |
7048 | |
7049 # So? What about this header? | |
7050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7051 yes:no: ) | |
7052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7053 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7056 ac_header_preproc=yes | |
7057 ;; | |
7058 no:yes:* ) | |
7059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7060 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7062 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7064 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7066 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7070 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7071 | |
7072 ;; | |
7073 esac | |
7074 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7075 $as_echo_n "checking for $ac_header... " >&6; } | |
7076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7077 $as_echo_n "(cached) " >&6 | |
7078 else | |
7079 eval "$as_ac_Header=\$ac_header_preproc" | |
7080 fi | |
7081 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7082 $as_echo "$as_val"'` | |
7083 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7084 $as_echo "$ac_res" >&6; } | |
7085 | |
7086 fi | |
7087 if test `eval 'as_val=${'$as_ac_Header'} | |
7088 $as_echo "$as_val"'` = yes; then | |
7089 cat >>confdefs.h <<_ACEOF | 6151 cat >>confdefs.h <<_ACEOF |
7090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 6152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7091 _ACEOF | 6153 _ACEOF |
7092 | 6154 |
7093 fi | 6155 fi |
7094 | 6156 |
7095 done | 6157 done |
7096 | 6158 |
7097 | 6159 |
7098 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5 | 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5 |
7099 $as_echo_n "checking if personality LINUX32 can be set... " >&6; } | 6161 $as_echo_n "checking if personality LINUX32 can be set... " >&6; } |
7100 cat >conftest.$ac_ext <<_ACEOF | 6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7101 /* confdefs.h. */ | |
7102 _ACEOF | |
7103 cat confdefs.h >>conftest.$ac_ext | |
7104 cat >>conftest.$ac_ext <<_ACEOF | |
7105 /* end confdefs.h. */ | 6163 /* end confdefs.h. */ |
7106 #include <sys/personality.h> | 6164 #include <sys/personality.h> |
7107 int | 6165 int |
7108 main () | 6166 main () |
7109 { | 6167 { |
7110 personality (PER_LINUX32) | 6168 personality (PER_LINUX32) |
7111 ; | 6169 ; |
7112 return 0; | 6170 return 0; |
7113 } | 6171 } |
7114 _ACEOF | 6172 _ACEOF |
7115 rm -f conftest.$ac_objext | 6173 if ac_fn_c_try_compile "$LINENO"; then : |
7116 if { (ac_try="$ac_compile" | |
7117 case "(($ac_try" in | |
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7119 *) ac_try_echo=$ac_try;; | |
7120 esac | |
7121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7122 $as_echo "$ac_try_echo") >&5 | |
7123 (eval "$ac_compile") 2>conftest.er1 | |
7124 ac_status=$? | |
7125 grep -v '^ *+' conftest.er1 >conftest.err | |
7126 rm -f conftest.er1 | |
7127 cat conftest.err >&5 | |
7128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7129 (exit $ac_status); } && { | |
7130 test -z "$ac_c_werror_flag" || | |
7131 test ! -s conftest.err | |
7132 } && test -s conftest.$ac_objext; then | |
7133 emacs_cv_personality_linux32=yes | 6174 emacs_cv_personality_linux32=yes |
7134 else | 6175 else |
7135 $as_echo "$as_me: failed program was:" >&5 | 6176 emacs_cv_personality_linux32=no |
7136 sed 's/^/| /' conftest.$ac_ext >&5 | 6177 fi |
7137 | |
7138 emacs_cv_personality_linux32=no | |
7139 fi | |
7140 | |
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7142 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5 | 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5 |
7143 $as_echo "$emacs_cv_personality_linux32" >&6; } | 6180 $as_echo "$emacs_cv_personality_linux32" >&6; } |
7144 | 6181 |
7145 if test $emacs_cv_personality_linux32 = yes; then | 6182 if test $emacs_cv_personality_linux32 = yes; then |
7146 | 6183 |
7147 cat >>confdefs.h <<\_ACEOF | 6184 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h |
7148 #define HAVE_PERSONALITY_LINUX32 1 | 6185 |
7149 _ACEOF | 6186 fi |
7150 | |
7151 fi | |
7152 | |
7153 | 6187 |
7154 for ac_header in term.h | 6188 for ac_header in term.h |
7155 do | 6189 do : |
7156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 6190 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" |
7157 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | 6191 if test "x$ac_cv_header_term_h" = x""yes; then : |
7158 $as_echo_n "checking for $ac_header... " >&6; } | 6192 cat >>confdefs.h <<_ACEOF |
7159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 6193 #define HAVE_TERM_H 1 |
6194 _ACEOF | |
6195 | |
6196 fi | |
6197 | |
6198 done | |
6199 | |
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
6201 $as_echo_n "checking for ANSI C header files... " >&6; } | |
6202 if test "${ac_cv_header_stdc+set}" = set; then : | |
7160 $as_echo_n "(cached) " >&6 | 6203 $as_echo_n "(cached) " >&6 |
7161 else | 6204 else |
7162 cat >conftest.$ac_ext <<_ACEOF | 6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7163 /* confdefs.h. */ | |
7164 _ACEOF | |
7165 cat confdefs.h >>conftest.$ac_ext | |
7166 cat >>conftest.$ac_ext <<_ACEOF | |
7167 /* end confdefs.h. */ | |
7168 #include <$ac_header> | |
7169 _ACEOF | |
7170 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7171 case "(($ac_try" in | |
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7173 *) ac_try_echo=$ac_try;; | |
7174 esac | |
7175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7176 $as_echo "$ac_try_echo") >&5 | |
7177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7178 ac_status=$? | |
7179 grep -v '^ *+' conftest.er1 >conftest.err | |
7180 rm -f conftest.er1 | |
7181 cat conftest.err >&5 | |
7182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7183 (exit $ac_status); } >/dev/null && { | |
7184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7185 test ! -s conftest.err | |
7186 }; then | |
7187 eval "$as_ac_Header=yes" | |
7188 else | |
7189 $as_echo "$as_me: failed program was:" >&5 | |
7190 sed 's/^/| /' conftest.$ac_ext >&5 | |
7191 | |
7192 eval "$as_ac_Header=no" | |
7193 fi | |
7194 | |
7195 rm -f conftest.err conftest.$ac_ext | |
7196 fi | |
7197 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7198 $as_echo "$as_val"'` | |
7199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7200 $as_echo "$ac_res" >&6; } | |
7201 if test `eval 'as_val=${'$as_ac_Header'} | |
7202 $as_echo "$as_val"'` = yes; then | |
7203 cat >>confdefs.h <<_ACEOF | |
7204 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7205 _ACEOF | |
7206 | |
7207 fi | |
7208 | |
7209 done | |
7210 | |
7211 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
7212 $as_echo_n "checking for ANSI C header files... " >&6; } | |
7213 if test "${ac_cv_header_stdc+set}" = set; then | |
7214 $as_echo_n "(cached) " >&6 | |
7215 else | |
7216 cat >conftest.$ac_ext <<_ACEOF | |
7217 /* confdefs.h. */ | |
7218 _ACEOF | |
7219 cat confdefs.h >>conftest.$ac_ext | |
7220 cat >>conftest.$ac_ext <<_ACEOF | |
7221 /* end confdefs.h. */ | 6206 /* end confdefs.h. */ |
7222 #include <stdlib.h> | 6207 #include <stdlib.h> |
7223 #include <stdarg.h> | 6208 #include <stdarg.h> |
7224 #include <string.h> | 6209 #include <string.h> |
7225 #include <float.h> | 6210 #include <float.h> |
7230 | 6215 |
7231 ; | 6216 ; |
7232 return 0; | 6217 return 0; |
7233 } | 6218 } |
7234 _ACEOF | 6219 _ACEOF |
7235 rm -f conftest.$ac_objext | 6220 if ac_fn_c_try_compile "$LINENO"; then : |
7236 if { (ac_try="$ac_compile" | |
7237 case "(($ac_try" in | |
7238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7239 *) ac_try_echo=$ac_try;; | |
7240 esac | |
7241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7242 $as_echo "$ac_try_echo") >&5 | |
7243 (eval "$ac_compile") 2>conftest.er1 | |
7244 ac_status=$? | |
7245 grep -v '^ *+' conftest.er1 >conftest.err | |
7246 rm -f conftest.er1 | |
7247 cat conftest.err >&5 | |
7248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7249 (exit $ac_status); } && { | |
7250 test -z "$ac_c_werror_flag" || | |
7251 test ! -s conftest.err | |
7252 } && test -s conftest.$ac_objext; then | |
7253 ac_cv_header_stdc=yes | 6221 ac_cv_header_stdc=yes |
7254 else | 6222 else |
7255 $as_echo "$as_me: failed program was:" >&5 | 6223 ac_cv_header_stdc=no |
7256 sed 's/^/| /' conftest.$ac_ext >&5 | 6224 fi |
7257 | |
7258 ac_cv_header_stdc=no | |
7259 fi | |
7260 | |
7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7262 | 6226 |
7263 if test $ac_cv_header_stdc = yes; then | 6227 if test $ac_cv_header_stdc = yes; then |
7264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 6228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
7265 cat >conftest.$ac_ext <<_ACEOF | 6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7266 /* confdefs.h. */ | |
7267 _ACEOF | |
7268 cat confdefs.h >>conftest.$ac_ext | |
7269 cat >>conftest.$ac_ext <<_ACEOF | |
7270 /* end confdefs.h. */ | 6230 /* end confdefs.h. */ |
7271 #include <string.h> | 6231 #include <string.h> |
7272 | 6232 |
7273 _ACEOF | 6233 _ACEOF |
7274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 6234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7275 $EGREP "memchr" >/dev/null 2>&1; then | 6235 $EGREP "memchr" >/dev/null 2>&1; then : |
7276 : | 6236 |
7277 else | 6237 else |
7278 ac_cv_header_stdc=no | 6238 ac_cv_header_stdc=no |
7279 fi | 6239 fi |
7280 rm -f conftest* | 6240 rm -f conftest* |
7281 | 6241 |
7282 fi | 6242 fi |
7283 | 6243 |
7284 if test $ac_cv_header_stdc = yes; then | 6244 if test $ac_cv_header_stdc = yes; then |
7285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 6245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
7286 cat >conftest.$ac_ext <<_ACEOF | 6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7287 /* confdefs.h. */ | |
7288 _ACEOF | |
7289 cat confdefs.h >>conftest.$ac_ext | |
7290 cat >>conftest.$ac_ext <<_ACEOF | |
7291 /* end confdefs.h. */ | 6247 /* end confdefs.h. */ |
7292 #include <stdlib.h> | 6248 #include <stdlib.h> |
7293 | 6249 |
7294 _ACEOF | 6250 _ACEOF |
7295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 6251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7296 $EGREP "free" >/dev/null 2>&1; then | 6252 $EGREP "free" >/dev/null 2>&1; then : |
7297 : | 6253 |
7298 else | 6254 else |
7299 ac_cv_header_stdc=no | 6255 ac_cv_header_stdc=no |
7300 fi | 6256 fi |
7301 rm -f conftest* | 6257 rm -f conftest* |
7302 | 6258 |
7303 fi | 6259 fi |
7304 | 6260 |
7305 if test $ac_cv_header_stdc = yes; then | 6261 if test $ac_cv_header_stdc = yes; then |
7306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 6262 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
7307 if test "$cross_compiling" = yes; then | 6263 if test "$cross_compiling" = yes; then : |
7308 : | 6264 : |
7309 else | 6265 else |
7310 cat >conftest.$ac_ext <<_ACEOF | 6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7311 /* confdefs.h. */ | |
7312 _ACEOF | |
7313 cat confdefs.h >>conftest.$ac_ext | |
7314 cat >>conftest.$ac_ext <<_ACEOF | |
7315 /* end confdefs.h. */ | 6267 /* end confdefs.h. */ |
7316 #include <ctype.h> | 6268 #include <ctype.h> |
7317 #include <stdlib.h> | 6269 #include <stdlib.h> |
7318 #if ((' ' & 0x0FF) == 0x020) | 6270 #if ((' ' & 0x0FF) == 0x020) |
7319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 6271 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
7336 || toupper (i) != TOUPPER (i)) | 6288 || toupper (i) != TOUPPER (i)) |
7337 return 2; | 6289 return 2; |
7338 return 0; | 6290 return 0; |
7339 } | 6291 } |
7340 _ACEOF | 6292 _ACEOF |
7341 rm -f conftest$ac_exeext | 6293 if ac_fn_c_try_run "$LINENO"; then : |
7342 if { (ac_try="$ac_link" | 6294 |
7343 case "(($ac_try" in | 6295 else |
7344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 6296 ac_cv_header_stdc=no |
7345 *) ac_try_echo=$ac_try;; | 6297 fi |
7346 esac | 6298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 6299 conftest.$ac_objext conftest.beam conftest.$ac_ext |
7348 $as_echo "$ac_try_echo") >&5 | 6300 fi |
7349 (eval "$ac_link") 2>&5 | 6301 |
7350 ac_status=$? | 6302 fi |
7351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 6303 fi |
7352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7353 { (case "(($ac_try" in | |
7354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7355 *) ac_try_echo=$ac_try;; | |
7356 esac | |
7357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7358 $as_echo "$ac_try_echo") >&5 | |
7359 (eval "$ac_try") 2>&5 | |
7360 ac_status=$? | |
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7362 (exit $ac_status); }; }; then | |
7363 : | |
7364 else | |
7365 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
7366 $as_echo "$as_me: failed program was:" >&5 | |
7367 sed 's/^/| /' conftest.$ac_ext >&5 | |
7368 | |
7369 ( exit $ac_status ) | |
7370 ac_cv_header_stdc=no | |
7371 fi | |
7372 rm -rf conftest.dSYM | |
7373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7374 fi | |
7375 | |
7376 | |
7377 fi | |
7378 fi | |
7379 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
7380 $as_echo "$ac_cv_header_stdc" >&6; } | 6305 $as_echo "$ac_cv_header_stdc" >&6; } |
7381 if test $ac_cv_header_stdc = yes; then | 6306 if test $ac_cv_header_stdc = yes; then |
7382 | 6307 |
7383 cat >>confdefs.h <<\_ACEOF | 6308 $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
7384 #define STDC_HEADERS 1 | 6309 |
7385 _ACEOF | 6310 fi |
7386 | 6311 |
7387 fi | 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
7388 | |
7389 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
7390 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 6313 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
7391 if test "${ac_cv_header_time+set}" = set; then | 6314 if test "${ac_cv_header_time+set}" = set; then : |
7392 $as_echo_n "(cached) " >&6 | 6315 $as_echo_n "(cached) " >&6 |
7393 else | 6316 else |
7394 cat >conftest.$ac_ext <<_ACEOF | 6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7395 /* confdefs.h. */ | |
7396 _ACEOF | |
7397 cat confdefs.h >>conftest.$ac_ext | |
7398 cat >>conftest.$ac_ext <<_ACEOF | |
7399 /* end confdefs.h. */ | 6318 /* end confdefs.h. */ |
7400 #include <sys/types.h> | 6319 #include <sys/types.h> |
7401 #include <sys/time.h> | 6320 #include <sys/time.h> |
7402 #include <time.h> | 6321 #include <time.h> |
7403 | 6322 |
7408 return 0; | 6327 return 0; |
7409 ; | 6328 ; |
7410 return 0; | 6329 return 0; |
7411 } | 6330 } |
7412 _ACEOF | 6331 _ACEOF |
7413 rm -f conftest.$ac_objext | 6332 if ac_fn_c_try_compile "$LINENO"; then : |
7414 if { (ac_try="$ac_compile" | |
7415 case "(($ac_try" in | |
7416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7417 *) ac_try_echo=$ac_try;; | |
7418 esac | |
7419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7420 $as_echo "$ac_try_echo") >&5 | |
7421 (eval "$ac_compile") 2>conftest.er1 | |
7422 ac_status=$? | |
7423 grep -v '^ *+' conftest.er1 >conftest.err | |
7424 rm -f conftest.er1 | |
7425 cat conftest.err >&5 | |
7426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7427 (exit $ac_status); } && { | |
7428 test -z "$ac_c_werror_flag" || | |
7429 test ! -s conftest.err | |
7430 } && test -s conftest.$ac_objext; then | |
7431 ac_cv_header_time=yes | 6333 ac_cv_header_time=yes |
7432 else | 6334 else |
7433 $as_echo "$as_me: failed program was:" >&5 | 6335 ac_cv_header_time=no |
7434 sed 's/^/| /' conftest.$ac_ext >&5 | 6336 fi |
7435 | |
7436 ac_cv_header_time=no | |
7437 fi | |
7438 | |
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7440 fi | 6338 fi |
7441 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
7442 $as_echo "$ac_cv_header_time" >&6; } | 6340 $as_echo "$ac_cv_header_time" >&6; } |
7443 if test $ac_cv_header_time = yes; then | 6341 if test $ac_cv_header_time = yes; then |
7444 | 6342 |
7445 cat >>confdefs.h <<\_ACEOF | 6343 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
7446 #define TIME_WITH_SYS_TIME 1 | 6344 |
7447 _ACEOF | 6345 fi |
7448 | 6346 |
7449 fi | 6347 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default" |
7450 | 6348 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then : |
7451 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 | 6349 ac_have_decl=1 |
7452 $as_echo_n "checking whether sys_siglist is declared... " >&6; } | 6350 else |
7453 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then | 6351 ac_have_decl=0 |
7454 $as_echo_n "(cached) " >&6 | 6352 fi |
7455 else | |
7456 cat >conftest.$ac_ext <<_ACEOF | |
7457 /* confdefs.h. */ | |
7458 _ACEOF | |
7459 cat confdefs.h >>conftest.$ac_ext | |
7460 cat >>conftest.$ac_ext <<_ACEOF | |
7461 /* end confdefs.h. */ | |
7462 $ac_includes_default | |
7463 int | |
7464 main () | |
7465 { | |
7466 #ifndef sys_siglist | |
7467 (void) sys_siglist; | |
7468 #endif | |
7469 | |
7470 ; | |
7471 return 0; | |
7472 } | |
7473 _ACEOF | |
7474 rm -f conftest.$ac_objext | |
7475 if { (ac_try="$ac_compile" | |
7476 case "(($ac_try" in | |
7477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7478 *) ac_try_echo=$ac_try;; | |
7479 esac | |
7480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7481 $as_echo "$ac_try_echo") >&5 | |
7482 (eval "$ac_compile") 2>conftest.er1 | |
7483 ac_status=$? | |
7484 grep -v '^ *+' conftest.er1 >conftest.err | |
7485 rm -f conftest.er1 | |
7486 cat conftest.err >&5 | |
7487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7488 (exit $ac_status); } && { | |
7489 test -z "$ac_c_werror_flag" || | |
7490 test ! -s conftest.err | |
7491 } && test -s conftest.$ac_objext; then | |
7492 ac_cv_have_decl_sys_siglist=yes | |
7493 else | |
7494 $as_echo "$as_me: failed program was:" >&5 | |
7495 sed 's/^/| /' conftest.$ac_ext >&5 | |
7496 | |
7497 ac_cv_have_decl_sys_siglist=no | |
7498 fi | |
7499 | |
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7501 fi | |
7502 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 | |
7503 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; } | |
7504 if test $ac_cv_have_decl_sys_siglist = yes; then | |
7505 | 6353 |
7506 cat >>confdefs.h <<_ACEOF | 6354 cat >>confdefs.h <<_ACEOF |
7507 #define HAVE_DECL_SYS_SIGLIST 1 | 6355 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl |
7508 _ACEOF | 6356 _ACEOF |
7509 | |
7510 | |
7511 else | |
7512 cat >>confdefs.h <<_ACEOF | |
7513 #define HAVE_DECL_SYS_SIGLIST 0 | |
7514 _ACEOF | |
7515 | |
7516 | |
7517 fi | |
7518 | |
7519 | 6357 |
7520 if test $ac_cv_have_decl_sys_siglist != yes; then | 6358 if test $ac_cv_have_decl_sys_siglist != yes; then |
7521 # For Tru64, at least: | 6359 # For Tru64, at least: |
7522 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 | 6360 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default" |
7523 $as_echo_n "checking whether __sys_siglist is declared... " >&6; } | 6361 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then : |
7524 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then | 6362 ac_have_decl=1 |
6363 else | |
6364 ac_have_decl=0 | |
6365 fi | |
6366 | |
6367 cat >>confdefs.h <<_ACEOF | |
6368 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl | |
6369 _ACEOF | |
6370 | |
6371 if test $ac_cv_have_decl___sys_siglist = yes; then | |
6372 | |
6373 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h | |
6374 | |
6375 fi | |
6376 fi | |
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
6378 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
6379 if test "${ac_cv_header_sys_wait_h+set}" = set; then : | |
7525 $as_echo_n "(cached) " >&6 | 6380 $as_echo_n "(cached) " >&6 |
7526 else | 6381 else |
7527 cat >conftest.$ac_ext <<_ACEOF | 6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7528 /* confdefs.h. */ | |
7529 _ACEOF | |
7530 cat confdefs.h >>conftest.$ac_ext | |
7531 cat >>conftest.$ac_ext <<_ACEOF | |
7532 /* end confdefs.h. */ | |
7533 $ac_includes_default | |
7534 int | |
7535 main () | |
7536 { | |
7537 #ifndef __sys_siglist | |
7538 (void) __sys_siglist; | |
7539 #endif | |
7540 | |
7541 ; | |
7542 return 0; | |
7543 } | |
7544 _ACEOF | |
7545 rm -f conftest.$ac_objext | |
7546 if { (ac_try="$ac_compile" | |
7547 case "(($ac_try" in | |
7548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7549 *) ac_try_echo=$ac_try;; | |
7550 esac | |
7551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7552 $as_echo "$ac_try_echo") >&5 | |
7553 (eval "$ac_compile") 2>conftest.er1 | |
7554 ac_status=$? | |
7555 grep -v '^ *+' conftest.er1 >conftest.err | |
7556 rm -f conftest.er1 | |
7557 cat conftest.err >&5 | |
7558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7559 (exit $ac_status); } && { | |
7560 test -z "$ac_c_werror_flag" || | |
7561 test ! -s conftest.err | |
7562 } && test -s conftest.$ac_objext; then | |
7563 ac_cv_have_decl___sys_siglist=yes | |
7564 else | |
7565 $as_echo "$as_me: failed program was:" >&5 | |
7566 sed 's/^/| /' conftest.$ac_ext >&5 | |
7567 | |
7568 ac_cv_have_decl___sys_siglist=no | |
7569 fi | |
7570 | |
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7572 fi | |
7573 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 | |
7574 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; } | |
7575 if test $ac_cv_have_decl___sys_siglist = yes; then | |
7576 | |
7577 cat >>confdefs.h <<_ACEOF | |
7578 #define HAVE_DECL___SYS_SIGLIST 1 | |
7579 _ACEOF | |
7580 | |
7581 | |
7582 else | |
7583 cat >>confdefs.h <<_ACEOF | |
7584 #define HAVE_DECL___SYS_SIGLIST 0 | |
7585 _ACEOF | |
7586 | |
7587 | |
7588 fi | |
7589 | |
7590 | |
7591 if test $ac_cv_have_decl___sys_siglist = yes; then | |
7592 | |
7593 cat >>confdefs.h <<\_ACEOF | |
7594 #define sys_siglist __sys_siglist | |
7595 _ACEOF | |
7596 | |
7597 fi | |
7598 fi | |
7599 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
7600 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
7601 if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
7602 $as_echo_n "(cached) " >&6 | |
7603 else | |
7604 cat >conftest.$ac_ext <<_ACEOF | |
7605 /* confdefs.h. */ | |
7606 _ACEOF | |
7607 cat confdefs.h >>conftest.$ac_ext | |
7608 cat >>conftest.$ac_ext <<_ACEOF | |
7609 /* end confdefs.h. */ | 6383 /* end confdefs.h. */ |
7610 #include <sys/types.h> | 6384 #include <sys/types.h> |
7611 #include <sys/wait.h> | 6385 #include <sys/wait.h> |
7612 #ifndef WEXITSTATUS | 6386 #ifndef WEXITSTATUS |
7613 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | 6387 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
7624 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 6398 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
7625 ; | 6399 ; |
7626 return 0; | 6400 return 0; |
7627 } | 6401 } |
7628 _ACEOF | 6402 _ACEOF |
7629 rm -f conftest.$ac_objext | 6403 if ac_fn_c_try_compile "$LINENO"; then : |
7630 if { (ac_try="$ac_compile" | |
7631 case "(($ac_try" in | |
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7633 *) ac_try_echo=$ac_try;; | |
7634 esac | |
7635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7636 $as_echo "$ac_try_echo") >&5 | |
7637 (eval "$ac_compile") 2>conftest.er1 | |
7638 ac_status=$? | |
7639 grep -v '^ *+' conftest.er1 >conftest.err | |
7640 rm -f conftest.er1 | |
7641 cat conftest.err >&5 | |
7642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7643 (exit $ac_status); } && { | |
7644 test -z "$ac_c_werror_flag" || | |
7645 test ! -s conftest.err | |
7646 } && test -s conftest.$ac_objext; then | |
7647 ac_cv_header_sys_wait_h=yes | 6404 ac_cv_header_sys_wait_h=yes |
7648 else | 6405 else |
7649 $as_echo "$as_me: failed program was:" >&5 | 6406 ac_cv_header_sys_wait_h=no |
7650 sed 's/^/| /' conftest.$ac_ext >&5 | 6407 fi |
7651 | |
7652 ac_cv_header_sys_wait_h=no | |
7653 fi | |
7654 | |
7655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7656 fi | 6409 fi |
7657 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
7658 $as_echo "$ac_cv_header_sys_wait_h" >&6; } | 6411 $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
7659 if test $ac_cv_header_sys_wait_h = yes; then | 6412 if test $ac_cv_header_sys_wait_h = yes; then |
7660 | 6413 |
7661 cat >>confdefs.h <<\_ACEOF | 6414 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
7662 #define HAVE_SYS_WAIT_H 1 | 6415 |
7663 _ACEOF | 6416 fi |
7664 | 6417 |
7665 fi | 6418 |
7666 | 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5 |
7667 | |
7668 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5 | |
7669 $as_echo_n "checking for struct utimbuf... " >&6; } | 6420 $as_echo_n "checking for struct utimbuf... " >&6; } |
7670 if test "${emacs_cv_struct_utimbuf+set}" = set; then | 6421 if test "${emacs_cv_struct_utimbuf+set}" = set; then : |
7671 $as_echo_n "(cached) " >&6 | 6422 $as_echo_n "(cached) " >&6 |
7672 else | 6423 else |
7673 cat >conftest.$ac_ext <<_ACEOF | 6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7674 /* confdefs.h. */ | |
7675 _ACEOF | |
7676 cat confdefs.h >>conftest.$ac_ext | |
7677 cat >>conftest.$ac_ext <<_ACEOF | |
7678 /* end confdefs.h. */ | 6425 /* end confdefs.h. */ |
7679 #ifdef TIME_WITH_SYS_TIME | 6426 #ifdef TIME_WITH_SYS_TIME |
7680 #include <sys/time.h> | 6427 #include <sys/time.h> |
7681 #include <time.h> | 6428 #include <time.h> |
7682 #else | 6429 #else |
7695 static struct utimbuf x; x.actime = x.modtime; | 6442 static struct utimbuf x; x.actime = x.modtime; |
7696 ; | 6443 ; |
7697 return 0; | 6444 return 0; |
7698 } | 6445 } |
7699 _ACEOF | 6446 _ACEOF |
7700 rm -f conftest.$ac_objext | 6447 if ac_fn_c_try_compile "$LINENO"; then : |
7701 if { (ac_try="$ac_compile" | |
7702 case "(($ac_try" in | |
7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7704 *) ac_try_echo=$ac_try;; | |
7705 esac | |
7706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7707 $as_echo "$ac_try_echo") >&5 | |
7708 (eval "$ac_compile") 2>conftest.er1 | |
7709 ac_status=$? | |
7710 grep -v '^ *+' conftest.er1 >conftest.err | |
7711 rm -f conftest.er1 | |
7712 cat conftest.err >&5 | |
7713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7714 (exit $ac_status); } && { | |
7715 test -z "$ac_c_werror_flag" || | |
7716 test ! -s conftest.err | |
7717 } && test -s conftest.$ac_objext; then | |
7718 emacs_cv_struct_utimbuf=yes | 6448 emacs_cv_struct_utimbuf=yes |
7719 else | 6449 else |
7720 $as_echo "$as_me: failed program was:" >&5 | 6450 emacs_cv_struct_utimbuf=no |
7721 sed 's/^/| /' conftest.$ac_ext >&5 | 6451 fi |
7722 | |
7723 emacs_cv_struct_utimbuf=no | |
7724 fi | |
7725 | |
7726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7727 fi | 6453 fi |
7728 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 | 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5 |
7729 $as_echo "$emacs_cv_struct_utimbuf" >&6; } | 6455 $as_echo "$emacs_cv_struct_utimbuf" >&6; } |
7730 if test $emacs_cv_struct_utimbuf = yes; then | 6456 if test $emacs_cv_struct_utimbuf = yes; then |
7731 | 6457 |
7732 cat >>confdefs.h <<\_ACEOF | 6458 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h |
7733 #define HAVE_STRUCT_UTIMBUF 1 | 6459 |
7734 _ACEOF | 6460 fi |
7735 | 6461 |
7736 fi | 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
7737 | |
7738 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
7739 $as_echo_n "checking return type of signal handlers... " >&6; } | 6463 $as_echo_n "checking return type of signal handlers... " >&6; } |
7740 if test "${ac_cv_type_signal+set}" = set; then | 6464 if test "${ac_cv_type_signal+set}" = set; then : |
7741 $as_echo_n "(cached) " >&6 | 6465 $as_echo_n "(cached) " >&6 |
7742 else | 6466 else |
7743 cat >conftest.$ac_ext <<_ACEOF | 6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7744 /* confdefs.h. */ | |
7745 _ACEOF | |
7746 cat confdefs.h >>conftest.$ac_ext | |
7747 cat >>conftest.$ac_ext <<_ACEOF | |
7748 /* end confdefs.h. */ | 6468 /* end confdefs.h. */ |
7749 #include <sys/types.h> | 6469 #include <sys/types.h> |
7750 #include <signal.h> | 6470 #include <signal.h> |
7751 | 6471 |
7752 int | 6472 int |
7755 return *(signal (0, 0)) (0) == 1; | 6475 return *(signal (0, 0)) (0) == 1; |
7756 ; | 6476 ; |
7757 return 0; | 6477 return 0; |
7758 } | 6478 } |
7759 _ACEOF | 6479 _ACEOF |
7760 rm -f conftest.$ac_objext | 6480 if ac_fn_c_try_compile "$LINENO"; then : |
7761 if { (ac_try="$ac_compile" | |
7762 case "(($ac_try" in | |
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7764 *) ac_try_echo=$ac_try;; | |
7765 esac | |
7766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7767 $as_echo "$ac_try_echo") >&5 | |
7768 (eval "$ac_compile") 2>conftest.er1 | |
7769 ac_status=$? | |
7770 grep -v '^ *+' conftest.er1 >conftest.err | |
7771 rm -f conftest.er1 | |
7772 cat conftest.err >&5 | |
7773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7774 (exit $ac_status); } && { | |
7775 test -z "$ac_c_werror_flag" || | |
7776 test ! -s conftest.err | |
7777 } && test -s conftest.$ac_objext; then | |
7778 ac_cv_type_signal=int | 6481 ac_cv_type_signal=int |
7779 else | 6482 else |
7780 $as_echo "$as_me: failed program was:" >&5 | 6483 ac_cv_type_signal=void |
7781 sed 's/^/| /' conftest.$ac_ext >&5 | 6484 fi |
7782 | |
7783 ac_cv_type_signal=void | |
7784 fi | |
7785 | |
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7787 fi | 6486 fi |
7788 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
7789 $as_echo "$ac_cv_type_signal" >&6; } | 6488 $as_echo "$ac_cv_type_signal" >&6; } |
7790 | 6489 |
7791 cat >>confdefs.h <<_ACEOF | 6490 cat >>confdefs.h <<_ACEOF |
7792 #define RETSIGTYPE $ac_cv_type_signal | 6491 #define RETSIGTYPE $ac_cv_type_signal |
7793 _ACEOF | 6492 _ACEOF |
7794 | 6493 |
7795 | 6494 |
7796 | 6495 |
7797 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5 | 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5 |
7798 $as_echo_n "checking for speed_t... " >&6; } | 6497 $as_echo_n "checking for speed_t... " >&6; } |
7799 if test "${emacs_cv_speed_t+set}" = set; then | 6498 if test "${emacs_cv_speed_t+set}" = set; then : |
7800 $as_echo_n "(cached) " >&6 | 6499 $as_echo_n "(cached) " >&6 |
7801 else | 6500 else |
7802 cat >conftest.$ac_ext <<_ACEOF | 6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7803 /* confdefs.h. */ | |
7804 _ACEOF | |
7805 cat confdefs.h >>conftest.$ac_ext | |
7806 cat >>conftest.$ac_ext <<_ACEOF | |
7807 /* end confdefs.h. */ | 6502 /* end confdefs.h. */ |
7808 #include <termios.h> | 6503 #include <termios.h> |
7809 int | 6504 int |
7810 main () | 6505 main () |
7811 { | 6506 { |
7812 speed_t x = 1; | 6507 speed_t x = 1; |
7813 ; | 6508 ; |
7814 return 0; | 6509 return 0; |
7815 } | 6510 } |
7816 _ACEOF | 6511 _ACEOF |
7817 rm -f conftest.$ac_objext | 6512 if ac_fn_c_try_compile "$LINENO"; then : |
7818 if { (ac_try="$ac_compile" | |
7819 case "(($ac_try" in | |
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7821 *) ac_try_echo=$ac_try;; | |
7822 esac | |
7823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7824 $as_echo "$ac_try_echo") >&5 | |
7825 (eval "$ac_compile") 2>conftest.er1 | |
7826 ac_status=$? | |
7827 grep -v '^ *+' conftest.er1 >conftest.err | |
7828 rm -f conftest.er1 | |
7829 cat conftest.err >&5 | |
7830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7831 (exit $ac_status); } && { | |
7832 test -z "$ac_c_werror_flag" || | |
7833 test ! -s conftest.err | |
7834 } && test -s conftest.$ac_objext; then | |
7835 emacs_cv_speed_t=yes | 6513 emacs_cv_speed_t=yes |
7836 else | 6514 else |
7837 $as_echo "$as_me: failed program was:" >&5 | 6515 emacs_cv_speed_t=no |
7838 sed 's/^/| /' conftest.$ac_ext >&5 | 6516 fi |
7839 | |
7840 emacs_cv_speed_t=no | |
7841 fi | |
7842 | |
7843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7844 fi | 6518 fi |
7845 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 | 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5 |
7846 $as_echo "$emacs_cv_speed_t" >&6; } | 6520 $as_echo "$emacs_cv_speed_t" >&6; } |
7847 if test $emacs_cv_speed_t = yes; then | 6521 if test $emacs_cv_speed_t = yes; then |
7848 | 6522 |
7849 cat >>confdefs.h <<\_ACEOF | 6523 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h |
7850 #define HAVE_SPEED_T 1 | 6524 |
7851 _ACEOF | 6525 fi |
7852 | 6526 |
7853 fi | 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 |
7854 | |
7855 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5 | |
7856 $as_echo_n "checking for struct timeval... " >&6; } | 6528 $as_echo_n "checking for struct timeval... " >&6; } |
7857 if test "${emacs_cv_struct_timeval+set}" = set; then | 6529 if test "${emacs_cv_struct_timeval+set}" = set; then : |
7858 $as_echo_n "(cached) " >&6 | 6530 $as_echo_n "(cached) " >&6 |
7859 else | 6531 else |
7860 cat >conftest.$ac_ext <<_ACEOF | 6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7861 /* confdefs.h. */ | |
7862 _ACEOF | |
7863 cat confdefs.h >>conftest.$ac_ext | |
7864 cat >>conftest.$ac_ext <<_ACEOF | |
7865 /* end confdefs.h. */ | 6533 /* end confdefs.h. */ |
7866 #ifdef TIME_WITH_SYS_TIME | 6534 #ifdef TIME_WITH_SYS_TIME |
7867 #include <sys/time.h> | 6535 #include <sys/time.h> |
7868 #include <time.h> | 6536 #include <time.h> |
7869 #else | 6537 #else |
7879 static struct timeval x; x.tv_sec = x.tv_usec; | 6547 static struct timeval x; x.tv_sec = x.tv_usec; |
7880 ; | 6548 ; |
7881 return 0; | 6549 return 0; |
7882 } | 6550 } |
7883 _ACEOF | 6551 _ACEOF |
7884 rm -f conftest.$ac_objext | 6552 if ac_fn_c_try_compile "$LINENO"; then : |
7885 if { (ac_try="$ac_compile" | |
7886 case "(($ac_try" in | |
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7888 *) ac_try_echo=$ac_try;; | |
7889 esac | |
7890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7891 $as_echo "$ac_try_echo") >&5 | |
7892 (eval "$ac_compile") 2>conftest.er1 | |
7893 ac_status=$? | |
7894 grep -v '^ *+' conftest.er1 >conftest.err | |
7895 rm -f conftest.er1 | |
7896 cat conftest.err >&5 | |
7897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7898 (exit $ac_status); } && { | |
7899 test -z "$ac_c_werror_flag" || | |
7900 test ! -s conftest.err | |
7901 } && test -s conftest.$ac_objext; then | |
7902 emacs_cv_struct_timeval=yes | 6553 emacs_cv_struct_timeval=yes |
7903 else | 6554 else |
7904 $as_echo "$as_me: failed program was:" >&5 | 6555 emacs_cv_struct_timeval=no |
7905 sed 's/^/| /' conftest.$ac_ext >&5 | 6556 fi |
7906 | |
7907 emacs_cv_struct_timeval=no | |
7908 fi | |
7909 | |
7910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7911 fi | 6558 fi |
7912 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 | 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5 |
7913 $as_echo "$emacs_cv_struct_timeval" >&6; } | 6560 $as_echo "$emacs_cv_struct_timeval" >&6; } |
7914 HAVE_TIMEVAL=$emacs_cv_struct_timeval | 6561 HAVE_TIMEVAL=$emacs_cv_struct_timeval |
7915 if test $emacs_cv_struct_timeval = yes; then | 6562 if test $emacs_cv_struct_timeval = yes; then |
7916 | 6563 |
7917 cat >>confdefs.h <<\_ACEOF | 6564 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h |
7918 #define HAVE_TIMEVAL 1 | 6565 |
7919 _ACEOF | 6566 fi |
7920 | 6567 |
7921 fi | 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5 |
7922 | |
7923 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5 | |
7924 $as_echo_n "checking for struct exception... " >&6; } | 6569 $as_echo_n "checking for struct exception... " >&6; } |
7925 if test "${emacs_cv_struct_exception+set}" = set; then | 6570 if test "${emacs_cv_struct_exception+set}" = set; then : |
7926 $as_echo_n "(cached) " >&6 | 6571 $as_echo_n "(cached) " >&6 |
7927 else | 6572 else |
7928 cat >conftest.$ac_ext <<_ACEOF | 6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7929 /* confdefs.h. */ | |
7930 _ACEOF | |
7931 cat confdefs.h >>conftest.$ac_ext | |
7932 cat >>conftest.$ac_ext <<_ACEOF | |
7933 /* end confdefs.h. */ | 6574 /* end confdefs.h. */ |
7934 #include <math.h> | 6575 #include <math.h> |
7935 int | 6576 int |
7936 main () | 6577 main () |
7937 { | 6578 { |
7938 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; | 6579 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
7939 ; | 6580 ; |
7940 return 0; | 6581 return 0; |
7941 } | 6582 } |
7942 _ACEOF | 6583 _ACEOF |
7943 rm -f conftest.$ac_objext | 6584 if ac_fn_c_try_compile "$LINENO"; then : |
7944 if { (ac_try="$ac_compile" | |
7945 case "(($ac_try" in | |
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7947 *) ac_try_echo=$ac_try;; | |
7948 esac | |
7949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7950 $as_echo "$ac_try_echo") >&5 | |
7951 (eval "$ac_compile") 2>conftest.er1 | |
7952 ac_status=$? | |
7953 grep -v '^ *+' conftest.er1 >conftest.err | |
7954 rm -f conftest.er1 | |
7955 cat conftest.err >&5 | |
7956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7957 (exit $ac_status); } && { | |
7958 test -z "$ac_c_werror_flag" || | |
7959 test ! -s conftest.err | |
7960 } && test -s conftest.$ac_objext; then | |
7961 emacs_cv_struct_exception=yes | 6585 emacs_cv_struct_exception=yes |
7962 else | 6586 else |
7963 $as_echo "$as_me: failed program was:" >&5 | 6587 emacs_cv_struct_exception=no |
7964 sed 's/^/| /' conftest.$ac_ext >&5 | 6588 fi |
7965 | |
7966 emacs_cv_struct_exception=no | |
7967 fi | |
7968 | |
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7970 fi | 6590 fi |
7971 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 | 6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5 |
7972 $as_echo "$emacs_cv_struct_exception" >&6; } | 6592 $as_echo "$emacs_cv_struct_exception" >&6; } |
7973 HAVE_EXCEPTION=$emacs_cv_struct_exception | 6593 HAVE_EXCEPTION=$emacs_cv_struct_exception |
7974 if test $emacs_cv_struct_exception != yes; then | 6594 if test $emacs_cv_struct_exception != yes; then |
7975 | 6595 |
7976 cat >>confdefs.h <<\_ACEOF | 6596 $as_echo "#define NO_MATHERR 1" >>confdefs.h |
7977 #define NO_MATHERR 1 | 6597 |
7978 _ACEOF | 6598 fi |
7979 | |
7980 fi | |
7981 | |
7982 | 6599 |
7983 for ac_header in sys/socket.h | 6600 for ac_header in sys/socket.h |
7984 do | 6601 do : |
7985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 6602 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
7986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 6603 if test "x$ac_cv_header_sys_socket_h" = x""yes; then : |
7987 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7988 $as_echo_n "checking for $ac_header... " >&6; } | |
7989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7990 $as_echo_n "(cached) " >&6 | |
7991 fi | |
7992 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7993 $as_echo "$as_val"'` | |
7994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7995 $as_echo "$ac_res" >&6; } | |
7996 else | |
7997 # Is the header compilable? | |
7998 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7999 $as_echo_n "checking $ac_header usability... " >&6; } | |
8000 cat >conftest.$ac_ext <<_ACEOF | |
8001 /* confdefs.h. */ | |
8002 _ACEOF | |
8003 cat confdefs.h >>conftest.$ac_ext | |
8004 cat >>conftest.$ac_ext <<_ACEOF | |
8005 /* end confdefs.h. */ | |
8006 $ac_includes_default | |
8007 #include <$ac_header> | |
8008 _ACEOF | |
8009 rm -f conftest.$ac_objext | |
8010 if { (ac_try="$ac_compile" | |
8011 case "(($ac_try" in | |
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8013 *) ac_try_echo=$ac_try;; | |
8014 esac | |
8015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8016 $as_echo "$ac_try_echo") >&5 | |
8017 (eval "$ac_compile") 2>conftest.er1 | |
8018 ac_status=$? | |
8019 grep -v '^ *+' conftest.er1 >conftest.err | |
8020 rm -f conftest.er1 | |
8021 cat conftest.err >&5 | |
8022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8023 (exit $ac_status); } && { | |
8024 test -z "$ac_c_werror_flag" || | |
8025 test ! -s conftest.err | |
8026 } && test -s conftest.$ac_objext; then | |
8027 ac_header_compiler=yes | |
8028 else | |
8029 $as_echo "$as_me: failed program was:" >&5 | |
8030 sed 's/^/| /' conftest.$ac_ext >&5 | |
8031 | |
8032 ac_header_compiler=no | |
8033 fi | |
8034 | |
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8036 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8037 $as_echo "$ac_header_compiler" >&6; } | |
8038 | |
8039 # Is the header present? | |
8040 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8041 $as_echo_n "checking $ac_header presence... " >&6; } | |
8042 cat >conftest.$ac_ext <<_ACEOF | |
8043 /* confdefs.h. */ | |
8044 _ACEOF | |
8045 cat confdefs.h >>conftest.$ac_ext | |
8046 cat >>conftest.$ac_ext <<_ACEOF | |
8047 /* end confdefs.h. */ | |
8048 #include <$ac_header> | |
8049 _ACEOF | |
8050 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8051 case "(($ac_try" in | |
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8053 *) ac_try_echo=$ac_try;; | |
8054 esac | |
8055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8056 $as_echo "$ac_try_echo") >&5 | |
8057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8058 ac_status=$? | |
8059 grep -v '^ *+' conftest.er1 >conftest.err | |
8060 rm -f conftest.er1 | |
8061 cat conftest.err >&5 | |
8062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8063 (exit $ac_status); } >/dev/null && { | |
8064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8065 test ! -s conftest.err | |
8066 }; then | |
8067 ac_header_preproc=yes | |
8068 else | |
8069 $as_echo "$as_me: failed program was:" >&5 | |
8070 sed 's/^/| /' conftest.$ac_ext >&5 | |
8071 | |
8072 ac_header_preproc=no | |
8073 fi | |
8074 | |
8075 rm -f conftest.err conftest.$ac_ext | |
8076 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8077 $as_echo "$ac_header_preproc" >&6; } | |
8078 | |
8079 # So? What about this header? | |
8080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8081 yes:no: ) | |
8082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8083 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8085 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8086 ac_header_preproc=yes | |
8087 ;; | |
8088 no:yes:* ) | |
8089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8090 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8092 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8094 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8096 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8100 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8101 | |
8102 ;; | |
8103 esac | |
8104 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8105 $as_echo_n "checking for $ac_header... " >&6; } | |
8106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8107 $as_echo_n "(cached) " >&6 | |
8108 else | |
8109 eval "$as_ac_Header=\$ac_header_preproc" | |
8110 fi | |
8111 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8112 $as_echo "$as_val"'` | |
8113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8114 $as_echo "$ac_res" >&6; } | |
8115 | |
8116 fi | |
8117 if test `eval 'as_val=${'$as_ac_Header'} | |
8118 $as_echo "$as_val"'` = yes; then | |
8119 cat >>confdefs.h <<_ACEOF | 6604 cat >>confdefs.h <<_ACEOF |
8120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 6605 #define HAVE_SYS_SOCKET_H 1 |
8121 _ACEOF | 6606 _ACEOF |
8122 | 6607 |
8123 fi | 6608 fi |
8124 | 6609 |
8125 done | 6610 done |
8126 | 6611 |
8127 | |
8128 for ac_header in net/if.h | 6612 for ac_header in net/if.h |
8129 do | 6613 do : |
8130 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 6614 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default |
8131 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8132 $as_echo_n "checking for $ac_header... " >&6; } | |
8133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8134 $as_echo_n "(cached) " >&6 | |
8135 else | |
8136 cat >conftest.$ac_ext <<_ACEOF | |
8137 /* confdefs.h. */ | |
8138 _ACEOF | |
8139 cat confdefs.h >>conftest.$ac_ext | |
8140 cat >>conftest.$ac_ext <<_ACEOF | |
8141 /* end confdefs.h. */ | |
8142 $ac_includes_default | |
8143 #if HAVE_SYS_SOCKET_H | 6615 #if HAVE_SYS_SOCKET_H |
8144 #include <sys/socket.h> | 6616 #include <sys/socket.h> |
8145 #endif | 6617 #endif |
8146 | 6618 " |
8147 #include <$ac_header> | 6619 if test "x$ac_cv_header_net_if_h" = x""yes; then : |
8148 _ACEOF | |
8149 rm -f conftest.$ac_objext | |
8150 if { (ac_try="$ac_compile" | |
8151 case "(($ac_try" in | |
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8153 *) ac_try_echo=$ac_try;; | |
8154 esac | |
8155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8156 $as_echo "$ac_try_echo") >&5 | |
8157 (eval "$ac_compile") 2>conftest.er1 | |
8158 ac_status=$? | |
8159 grep -v '^ *+' conftest.er1 >conftest.err | |
8160 rm -f conftest.er1 | |
8161 cat conftest.err >&5 | |
8162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8163 (exit $ac_status); } && { | |
8164 test -z "$ac_c_werror_flag" || | |
8165 test ! -s conftest.err | |
8166 } && test -s conftest.$ac_objext; then | |
8167 eval "$as_ac_Header=yes" | |
8168 else | |
8169 $as_echo "$as_me: failed program was:" >&5 | |
8170 sed 's/^/| /' conftest.$ac_ext >&5 | |
8171 | |
8172 eval "$as_ac_Header=no" | |
8173 fi | |
8174 | |
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8176 fi | |
8177 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8178 $as_echo "$as_val"'` | |
8179 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8180 $as_echo "$ac_res" >&6; } | |
8181 if test `eval 'as_val=${'$as_ac_Header'} | |
8182 $as_echo "$as_val"'` = yes; then | |
8183 cat >>confdefs.h <<_ACEOF | 6620 cat >>confdefs.h <<_ACEOF |
8184 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 6621 #define HAVE_NET_IF_H 1 |
8185 _ACEOF | 6622 _ACEOF |
8186 | 6623 |
8187 fi | 6624 fi |
8188 | 6625 |
8189 done | 6626 done |
8190 | 6627 |
8191 | 6628 |
8192 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
8193 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 6630 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
8194 if test "${ac_cv_struct_tm+set}" = set; then | 6631 if test "${ac_cv_struct_tm+set}" = set; then : |
8195 $as_echo_n "(cached) " >&6 | 6632 $as_echo_n "(cached) " >&6 |
8196 else | 6633 else |
8197 cat >conftest.$ac_ext <<_ACEOF | 6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8198 /* confdefs.h. */ | |
8199 _ACEOF | |
8200 cat confdefs.h >>conftest.$ac_ext | |
8201 cat >>conftest.$ac_ext <<_ACEOF | |
8202 /* end confdefs.h. */ | 6635 /* end confdefs.h. */ |
8203 #include <sys/types.h> | 6636 #include <sys/types.h> |
8204 #include <time.h> | 6637 #include <time.h> |
8205 | 6638 |
8206 int | 6639 int |
8211 return !p; | 6644 return !p; |
8212 ; | 6645 ; |
8213 return 0; | 6646 return 0; |
8214 } | 6647 } |
8215 _ACEOF | 6648 _ACEOF |
8216 rm -f conftest.$ac_objext | 6649 if ac_fn_c_try_compile "$LINENO"; then : |
8217 if { (ac_try="$ac_compile" | |
8218 case "(($ac_try" in | |
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8220 *) ac_try_echo=$ac_try;; | |
8221 esac | |
8222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8223 $as_echo "$ac_try_echo") >&5 | |
8224 (eval "$ac_compile") 2>conftest.er1 | |
8225 ac_status=$? | |
8226 grep -v '^ *+' conftest.er1 >conftest.err | |
8227 rm -f conftest.er1 | |
8228 cat conftest.err >&5 | |
8229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8230 (exit $ac_status); } && { | |
8231 test -z "$ac_c_werror_flag" || | |
8232 test ! -s conftest.err | |
8233 } && test -s conftest.$ac_objext; then | |
8234 ac_cv_struct_tm=time.h | 6650 ac_cv_struct_tm=time.h |
8235 else | 6651 else |
8236 $as_echo "$as_me: failed program was:" >&5 | 6652 ac_cv_struct_tm=sys/time.h |
8237 sed 's/^/| /' conftest.$ac_ext >&5 | 6653 fi |
8238 | |
8239 ac_cv_struct_tm=sys/time.h | |
8240 fi | |
8241 | |
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8243 fi | 6655 fi |
8244 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
8245 $as_echo "$ac_cv_struct_tm" >&6; } | 6657 $as_echo "$ac_cv_struct_tm" >&6; } |
8246 if test $ac_cv_struct_tm = sys/time.h; then | 6658 if test $ac_cv_struct_tm = sys/time.h; then |
8247 | 6659 |
8248 cat >>confdefs.h <<\_ACEOF | 6660 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
8249 #define TM_IN_SYS_TIME 1 | 6661 |
8250 _ACEOF | 6662 fi |
8251 | 6663 |
8252 fi | 6664 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> |
8253 | |
8254 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 | |
8255 $as_echo_n "checking for struct tm.tm_zone... " >&6; } | |
8256 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
8257 $as_echo_n "(cached) " >&6 | |
8258 else | |
8259 cat >conftest.$ac_ext <<_ACEOF | |
8260 /* confdefs.h. */ | |
8261 _ACEOF | |
8262 cat confdefs.h >>conftest.$ac_ext | |
8263 cat >>conftest.$ac_ext <<_ACEOF | |
8264 /* end confdefs.h. */ | |
8265 #include <sys/types.h> | |
8266 #include <$ac_cv_struct_tm> | 6665 #include <$ac_cv_struct_tm> |
8267 | 6666 |
8268 | 6667 " |
8269 int | 6668 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : |
8270 main () | |
8271 { | |
8272 static struct tm ac_aggr; | |
8273 if (ac_aggr.tm_zone) | |
8274 return 0; | |
8275 ; | |
8276 return 0; | |
8277 } | |
8278 _ACEOF | |
8279 rm -f conftest.$ac_objext | |
8280 if { (ac_try="$ac_compile" | |
8281 case "(($ac_try" in | |
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8283 *) ac_try_echo=$ac_try;; | |
8284 esac | |
8285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8286 $as_echo "$ac_try_echo") >&5 | |
8287 (eval "$ac_compile") 2>conftest.er1 | |
8288 ac_status=$? | |
8289 grep -v '^ *+' conftest.er1 >conftest.err | |
8290 rm -f conftest.er1 | |
8291 cat conftest.err >&5 | |
8292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8293 (exit $ac_status); } && { | |
8294 test -z "$ac_c_werror_flag" || | |
8295 test ! -s conftest.err | |
8296 } && test -s conftest.$ac_objext; then | |
8297 ac_cv_member_struct_tm_tm_zone=yes | |
8298 else | |
8299 $as_echo "$as_me: failed program was:" >&5 | |
8300 sed 's/^/| /' conftest.$ac_ext >&5 | |
8301 | |
8302 cat >conftest.$ac_ext <<_ACEOF | |
8303 /* confdefs.h. */ | |
8304 _ACEOF | |
8305 cat confdefs.h >>conftest.$ac_ext | |
8306 cat >>conftest.$ac_ext <<_ACEOF | |
8307 /* end confdefs.h. */ | |
8308 #include <sys/types.h> | |
8309 #include <$ac_cv_struct_tm> | |
8310 | |
8311 | |
8312 int | |
8313 main () | |
8314 { | |
8315 static struct tm ac_aggr; | |
8316 if (sizeof ac_aggr.tm_zone) | |
8317 return 0; | |
8318 ; | |
8319 return 0; | |
8320 } | |
8321 _ACEOF | |
8322 rm -f conftest.$ac_objext | |
8323 if { (ac_try="$ac_compile" | |
8324 case "(($ac_try" in | |
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8326 *) ac_try_echo=$ac_try;; | |
8327 esac | |
8328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8329 $as_echo "$ac_try_echo") >&5 | |
8330 (eval "$ac_compile") 2>conftest.er1 | |
8331 ac_status=$? | |
8332 grep -v '^ *+' conftest.er1 >conftest.err | |
8333 rm -f conftest.er1 | |
8334 cat conftest.err >&5 | |
8335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8336 (exit $ac_status); } && { | |
8337 test -z "$ac_c_werror_flag" || | |
8338 test ! -s conftest.err | |
8339 } && test -s conftest.$ac_objext; then | |
8340 ac_cv_member_struct_tm_tm_zone=yes | |
8341 else | |
8342 $as_echo "$as_me: failed program was:" >&5 | |
8343 sed 's/^/| /' conftest.$ac_ext >&5 | |
8344 | |
8345 ac_cv_member_struct_tm_tm_zone=no | |
8346 fi | |
8347 | |
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8349 fi | |
8350 | |
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8352 fi | |
8353 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 | |
8354 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; } | |
8355 if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
8356 | 6669 |
8357 cat >>confdefs.h <<_ACEOF | 6670 cat >>confdefs.h <<_ACEOF |
8358 #define HAVE_STRUCT_TM_TM_ZONE 1 | 6671 #define HAVE_STRUCT_TM_TM_ZONE 1 |
8359 _ACEOF | 6672 _ACEOF |
8360 | 6673 |
8361 | 6674 |
8362 fi | 6675 fi |
8363 | 6676 |
8364 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 6677 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
8365 | 6678 |
8366 cat >>confdefs.h <<\_ACEOF | 6679 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
8367 #define HAVE_TM_ZONE 1 | 6680 |
8368 _ACEOF | 6681 else |
8369 | 6682 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
8370 else | 6683 " |
8371 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 | 6684 if test "x$ac_cv_have_decl_tzname" = x""yes; then : |
8372 $as_echo_n "checking whether tzname is declared... " >&6; } | 6685 ac_have_decl=1 |
8373 if test "${ac_cv_have_decl_tzname+set}" = set; then | 6686 else |
6687 ac_have_decl=0 | |
6688 fi | |
6689 | |
6690 cat >>confdefs.h <<_ACEOF | |
6691 #define HAVE_DECL_TZNAME $ac_have_decl | |
6692 _ACEOF | |
6693 | |
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | |
6695 $as_echo_n "checking for tzname... " >&6; } | |
6696 if test "${ac_cv_var_tzname+set}" = set; then : | |
8374 $as_echo_n "(cached) " >&6 | 6697 $as_echo_n "(cached) " >&6 |
8375 else | 6698 else |
8376 cat >conftest.$ac_ext <<_ACEOF | 6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8377 /* confdefs.h. */ | |
8378 _ACEOF | |
8379 cat confdefs.h >>conftest.$ac_ext | |
8380 cat >>conftest.$ac_ext <<_ACEOF | |
8381 /* end confdefs.h. */ | |
8382 #include <time.h> | |
8383 | |
8384 int | |
8385 main () | |
8386 { | |
8387 #ifndef tzname | |
8388 (void) tzname; | |
8389 #endif | |
8390 | |
8391 ; | |
8392 return 0; | |
8393 } | |
8394 _ACEOF | |
8395 rm -f conftest.$ac_objext | |
8396 if { (ac_try="$ac_compile" | |
8397 case "(($ac_try" in | |
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8399 *) ac_try_echo=$ac_try;; | |
8400 esac | |
8401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8402 $as_echo "$ac_try_echo") >&5 | |
8403 (eval "$ac_compile") 2>conftest.er1 | |
8404 ac_status=$? | |
8405 grep -v '^ *+' conftest.er1 >conftest.err | |
8406 rm -f conftest.er1 | |
8407 cat conftest.err >&5 | |
8408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8409 (exit $ac_status); } && { | |
8410 test -z "$ac_c_werror_flag" || | |
8411 test ! -s conftest.err | |
8412 } && test -s conftest.$ac_objext; then | |
8413 ac_cv_have_decl_tzname=yes | |
8414 else | |
8415 $as_echo "$as_me: failed program was:" >&5 | |
8416 sed 's/^/| /' conftest.$ac_ext >&5 | |
8417 | |
8418 ac_cv_have_decl_tzname=no | |
8419 fi | |
8420 | |
8421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8422 fi | |
8423 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 | |
8424 $as_echo "$ac_cv_have_decl_tzname" >&6; } | |
8425 if test $ac_cv_have_decl_tzname = yes; then | |
8426 | |
8427 cat >>confdefs.h <<_ACEOF | |
8428 #define HAVE_DECL_TZNAME 1 | |
8429 _ACEOF | |
8430 | |
8431 | |
8432 else | |
8433 cat >>confdefs.h <<_ACEOF | |
8434 #define HAVE_DECL_TZNAME 0 | |
8435 _ACEOF | |
8436 | |
8437 | |
8438 fi | |
8439 | |
8440 | |
8441 { $as_echo "$as_me:$LINENO: checking for tzname" >&5 | |
8442 $as_echo_n "checking for tzname... " >&6; } | |
8443 if test "${ac_cv_var_tzname+set}" = set; then | |
8444 $as_echo_n "(cached) " >&6 | |
8445 else | |
8446 cat >conftest.$ac_ext <<_ACEOF | |
8447 /* confdefs.h. */ | |
8448 _ACEOF | |
8449 cat confdefs.h >>conftest.$ac_ext | |
8450 cat >>conftest.$ac_ext <<_ACEOF | |
8451 /* end confdefs.h. */ | 6700 /* end confdefs.h. */ |
8452 #include <time.h> | 6701 #include <time.h> |
8453 #if !HAVE_DECL_TZNAME | 6702 #if !HAVE_DECL_TZNAME |
8454 extern char *tzname[]; | 6703 extern char *tzname[]; |
8455 #endif | 6704 #endif |
8460 return tzname[0][0]; | 6709 return tzname[0][0]; |
8461 ; | 6710 ; |
8462 return 0; | 6711 return 0; |
8463 } | 6712 } |
8464 _ACEOF | 6713 _ACEOF |
8465 rm -f conftest.$ac_objext conftest$ac_exeext | 6714 if ac_fn_c_try_link "$LINENO"; then : |
8466 if { (ac_try="$ac_link" | |
8467 case "(($ac_try" in | |
8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8469 *) ac_try_echo=$ac_try;; | |
8470 esac | |
8471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8472 $as_echo "$ac_try_echo") >&5 | |
8473 (eval "$ac_link") 2>conftest.er1 | |
8474 ac_status=$? | |
8475 grep -v '^ *+' conftest.er1 >conftest.err | |
8476 rm -f conftest.er1 | |
8477 cat conftest.err >&5 | |
8478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8479 (exit $ac_status); } && { | |
8480 test -z "$ac_c_werror_flag" || | |
8481 test ! -s conftest.err | |
8482 } && test -s conftest$ac_exeext && { | |
8483 test "$cross_compiling" = yes || | |
8484 $as_test_x conftest$ac_exeext | |
8485 }; then | |
8486 ac_cv_var_tzname=yes | 6715 ac_cv_var_tzname=yes |
8487 else | 6716 else |
8488 $as_echo "$as_me: failed program was:" >&5 | 6717 ac_cv_var_tzname=no |
8489 sed 's/^/| /' conftest.$ac_ext >&5 | 6718 fi |
8490 | 6719 rm -f core conftest.err conftest.$ac_objext \ |
8491 ac_cv_var_tzname=no | 6720 conftest$ac_exeext conftest.$ac_ext |
8492 fi | 6721 fi |
8493 | 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
8494 rm -rf conftest.dSYM | |
8495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8496 conftest$ac_exeext conftest.$ac_ext | |
8497 fi | |
8498 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 | |
8499 $as_echo "$ac_cv_var_tzname" >&6; } | 6723 $as_echo "$ac_cv_var_tzname" >&6; } |
8500 if test $ac_cv_var_tzname = yes; then | 6724 if test $ac_cv_var_tzname = yes; then |
8501 | 6725 |
8502 cat >>confdefs.h <<\_ACEOF | 6726 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
8503 #define HAVE_TZNAME 1 | |
8504 _ACEOF | |
8505 | 6727 |
8506 fi | 6728 fi |
8507 fi | 6729 fi |
8508 | 6730 |
8509 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 | 6731 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> |
8510 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; } | 6732 " |
8511 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | 6733 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : |
8512 $as_echo_n "(cached) " >&6 | 6734 |
8513 else | 6735 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h |
8514 cat >conftest.$ac_ext <<_ACEOF | 6736 |
8515 /* confdefs.h. */ | 6737 fi |
8516 _ACEOF | 6738 |
8517 cat confdefs.h >>conftest.$ac_ext | 6739 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default |
8518 cat >>conftest.$ac_ext <<_ACEOF | |
8519 /* end confdefs.h. */ | |
8520 #include <time.h> | |
8521 | |
8522 int | |
8523 main () | |
8524 { | |
8525 static struct tm ac_aggr; | |
8526 if (ac_aggr.tm_gmtoff) | |
8527 return 0; | |
8528 ; | |
8529 return 0; | |
8530 } | |
8531 _ACEOF | |
8532 rm -f conftest.$ac_objext | |
8533 if { (ac_try="$ac_compile" | |
8534 case "(($ac_try" in | |
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8536 *) ac_try_echo=$ac_try;; | |
8537 esac | |
8538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8539 $as_echo "$ac_try_echo") >&5 | |
8540 (eval "$ac_compile") 2>conftest.er1 | |
8541 ac_status=$? | |
8542 grep -v '^ *+' conftest.er1 >conftest.err | |
8543 rm -f conftest.er1 | |
8544 cat conftest.err >&5 | |
8545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8546 (exit $ac_status); } && { | |
8547 test -z "$ac_c_werror_flag" || | |
8548 test ! -s conftest.err | |
8549 } && test -s conftest.$ac_objext; then | |
8550 ac_cv_member_struct_tm_tm_gmtoff=yes | |
8551 else | |
8552 $as_echo "$as_me: failed program was:" >&5 | |
8553 sed 's/^/| /' conftest.$ac_ext >&5 | |
8554 | |
8555 cat >conftest.$ac_ext <<_ACEOF | |
8556 /* confdefs.h. */ | |
8557 _ACEOF | |
8558 cat confdefs.h >>conftest.$ac_ext | |
8559 cat >>conftest.$ac_ext <<_ACEOF | |
8560 /* end confdefs.h. */ | |
8561 #include <time.h> | |
8562 | |
8563 int | |
8564 main () | |
8565 { | |
8566 static struct tm ac_aggr; | |
8567 if (sizeof ac_aggr.tm_gmtoff) | |
8568 return 0; | |
8569 ; | |
8570 return 0; | |
8571 } | |
8572 _ACEOF | |
8573 rm -f conftest.$ac_objext | |
8574 if { (ac_try="$ac_compile" | |
8575 case "(($ac_try" in | |
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8577 *) ac_try_echo=$ac_try;; | |
8578 esac | |
8579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8580 $as_echo "$ac_try_echo") >&5 | |
8581 (eval "$ac_compile") 2>conftest.er1 | |
8582 ac_status=$? | |
8583 grep -v '^ *+' conftest.er1 >conftest.err | |
8584 rm -f conftest.er1 | |
8585 cat conftest.err >&5 | |
8586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8587 (exit $ac_status); } && { | |
8588 test -z "$ac_c_werror_flag" || | |
8589 test ! -s conftest.err | |
8590 } && test -s conftest.$ac_objext; then | |
8591 ac_cv_member_struct_tm_tm_gmtoff=yes | |
8592 else | |
8593 $as_echo "$as_me: failed program was:" >&5 | |
8594 sed 's/^/| /' conftest.$ac_ext >&5 | |
8595 | |
8596 ac_cv_member_struct_tm_tm_gmtoff=no | |
8597 fi | |
8598 | |
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8600 fi | |
8601 | |
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8603 fi | |
8604 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 | |
8605 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; } | |
8606 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then | |
8607 | |
8608 cat >>confdefs.h <<\_ACEOF | |
8609 #define HAVE_TM_GMTOFF 1 | |
8610 _ACEOF | |
8611 | |
8612 fi | |
8613 | |
8614 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5 | |
8615 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; } | |
8616 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then | |
8617 $as_echo_n "(cached) " >&6 | |
8618 else | |
8619 cat >conftest.$ac_ext <<_ACEOF | |
8620 /* confdefs.h. */ | |
8621 _ACEOF | |
8622 cat confdefs.h >>conftest.$ac_ext | |
8623 cat >>conftest.$ac_ext <<_ACEOF | |
8624 /* end confdefs.h. */ | |
8625 $ac_includes_default | |
8626 #if HAVE_SYS_SOCKET_H | 6740 #if HAVE_SYS_SOCKET_H |
8627 #include <sys/socket.h> | 6741 #include <sys/socket.h> |
8628 #endif | 6742 #endif |
8629 #if HAVE_NET_IF_H | 6743 #if HAVE_NET_IF_H |
8630 #include <net/if.h> | 6744 #include <net/if.h> |
8631 #endif | 6745 #endif |
8632 | 6746 " |
8633 int | 6747 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then : |
8634 main () | 6748 |
8635 { | 6749 cat >>confdefs.h <<_ACEOF |
8636 static struct ifreq ac_aggr; | 6750 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 |
8637 if (ac_aggr.ifr_flags) | 6751 _ACEOF |
8638 return 0; | 6752 |
8639 ; | 6753 |
8640 return 0; | 6754 fi |
8641 } | 6755 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default |
8642 _ACEOF | |
8643 rm -f conftest.$ac_objext | |
8644 if { (ac_try="$ac_compile" | |
8645 case "(($ac_try" in | |
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8647 *) ac_try_echo=$ac_try;; | |
8648 esac | |
8649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8650 $as_echo "$ac_try_echo") >&5 | |
8651 (eval "$ac_compile") 2>conftest.er1 | |
8652 ac_status=$? | |
8653 grep -v '^ *+' conftest.er1 >conftest.err | |
8654 rm -f conftest.er1 | |
8655 cat conftest.err >&5 | |
8656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8657 (exit $ac_status); } && { | |
8658 test -z "$ac_c_werror_flag" || | |
8659 test ! -s conftest.err | |
8660 } && test -s conftest.$ac_objext; then | |
8661 ac_cv_member_struct_ifreq_ifr_flags=yes | |
8662 else | |
8663 $as_echo "$as_me: failed program was:" >&5 | |
8664 sed 's/^/| /' conftest.$ac_ext >&5 | |
8665 | |
8666 cat >conftest.$ac_ext <<_ACEOF | |
8667 /* confdefs.h. */ | |
8668 _ACEOF | |
8669 cat confdefs.h >>conftest.$ac_ext | |
8670 cat >>conftest.$ac_ext <<_ACEOF | |
8671 /* end confdefs.h. */ | |
8672 $ac_includes_default | |
8673 #if HAVE_SYS_SOCKET_H | 6756 #if HAVE_SYS_SOCKET_H |
8674 #include <sys/socket.h> | 6757 #include <sys/socket.h> |
8675 #endif | 6758 #endif |
8676 #if HAVE_NET_IF_H | 6759 #if HAVE_NET_IF_H |
8677 #include <net/if.h> | 6760 #include <net/if.h> |
8678 #endif | 6761 #endif |
8679 | 6762 " |
8680 int | 6763 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then : |
8681 main () | |
8682 { | |
8683 static struct ifreq ac_aggr; | |
8684 if (sizeof ac_aggr.ifr_flags) | |
8685 return 0; | |
8686 ; | |
8687 return 0; | |
8688 } | |
8689 _ACEOF | |
8690 rm -f conftest.$ac_objext | |
8691 if { (ac_try="$ac_compile" | |
8692 case "(($ac_try" in | |
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8694 *) ac_try_echo=$ac_try;; | |
8695 esac | |
8696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8697 $as_echo "$ac_try_echo") >&5 | |
8698 (eval "$ac_compile") 2>conftest.er1 | |
8699 ac_status=$? | |
8700 grep -v '^ *+' conftest.er1 >conftest.err | |
8701 rm -f conftest.er1 | |
8702 cat conftest.err >&5 | |
8703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8704 (exit $ac_status); } && { | |
8705 test -z "$ac_c_werror_flag" || | |
8706 test ! -s conftest.err | |
8707 } && test -s conftest.$ac_objext; then | |
8708 ac_cv_member_struct_ifreq_ifr_flags=yes | |
8709 else | |
8710 $as_echo "$as_me: failed program was:" >&5 | |
8711 sed 's/^/| /' conftest.$ac_ext >&5 | |
8712 | |
8713 ac_cv_member_struct_ifreq_ifr_flags=no | |
8714 fi | |
8715 | |
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8717 fi | |
8718 | |
8719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8720 fi | |
8721 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5 | |
8722 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; } | |
8723 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then | |
8724 | 6764 |
8725 cat >>confdefs.h <<_ACEOF | 6765 cat >>confdefs.h <<_ACEOF |
8726 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 | 6766 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 |
8727 _ACEOF | 6767 _ACEOF |
8728 | 6768 |
8729 | 6769 |
8730 fi | 6770 fi |
8731 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5 | 6771 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default |
8732 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; } | |
8733 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then | |
8734 $as_echo_n "(cached) " >&6 | |
8735 else | |
8736 cat >conftest.$ac_ext <<_ACEOF | |
8737 /* confdefs.h. */ | |
8738 _ACEOF | |
8739 cat confdefs.h >>conftest.$ac_ext | |
8740 cat >>conftest.$ac_ext <<_ACEOF | |
8741 /* end confdefs.h. */ | |
8742 $ac_includes_default | |
8743 #if HAVE_SYS_SOCKET_H | 6772 #if HAVE_SYS_SOCKET_H |
8744 #include <sys/socket.h> | 6773 #include <sys/socket.h> |
8745 #endif | 6774 #endif |
8746 #if HAVE_NET_IF_H | 6775 #if HAVE_NET_IF_H |
8747 #include <net/if.h> | 6776 #include <net/if.h> |
8748 #endif | 6777 #endif |
8749 | 6778 " |
8750 int | 6779 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then : |
8751 main () | 6780 |
8752 { | 6781 cat >>confdefs.h <<_ACEOF |
8753 static struct ifreq ac_aggr; | 6782 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 |
8754 if (ac_aggr.ifr_hwaddr) | 6783 _ACEOF |
8755 return 0; | 6784 |
8756 ; | 6785 |
8757 return 0; | 6786 fi |
8758 } | 6787 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default |
8759 _ACEOF | |
8760 rm -f conftest.$ac_objext | |
8761 if { (ac_try="$ac_compile" | |
8762 case "(($ac_try" in | |
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8764 *) ac_try_echo=$ac_try;; | |
8765 esac | |
8766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8767 $as_echo "$ac_try_echo") >&5 | |
8768 (eval "$ac_compile") 2>conftest.er1 | |
8769 ac_status=$? | |
8770 grep -v '^ *+' conftest.er1 >conftest.err | |
8771 rm -f conftest.er1 | |
8772 cat conftest.err >&5 | |
8773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8774 (exit $ac_status); } && { | |
8775 test -z "$ac_c_werror_flag" || | |
8776 test ! -s conftest.err | |
8777 } && test -s conftest.$ac_objext; then | |
8778 ac_cv_member_struct_ifreq_ifr_hwaddr=yes | |
8779 else | |
8780 $as_echo "$as_me: failed program was:" >&5 | |
8781 sed 's/^/| /' conftest.$ac_ext >&5 | |
8782 | |
8783 cat >conftest.$ac_ext <<_ACEOF | |
8784 /* confdefs.h. */ | |
8785 _ACEOF | |
8786 cat confdefs.h >>conftest.$ac_ext | |
8787 cat >>conftest.$ac_ext <<_ACEOF | |
8788 /* end confdefs.h. */ | |
8789 $ac_includes_default | |
8790 #if HAVE_SYS_SOCKET_H | 6788 #if HAVE_SYS_SOCKET_H |
8791 #include <sys/socket.h> | 6789 #include <sys/socket.h> |
8792 #endif | 6790 #endif |
8793 #if HAVE_NET_IF_H | 6791 #if HAVE_NET_IF_H |
8794 #include <net/if.h> | 6792 #include <net/if.h> |
8795 #endif | 6793 #endif |
8796 | 6794 " |
8797 int | 6795 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then : |
8798 main () | |
8799 { | |
8800 static struct ifreq ac_aggr; | |
8801 if (sizeof ac_aggr.ifr_hwaddr) | |
8802 return 0; | |
8803 ; | |
8804 return 0; | |
8805 } | |
8806 _ACEOF | |
8807 rm -f conftest.$ac_objext | |
8808 if { (ac_try="$ac_compile" | |
8809 case "(($ac_try" in | |
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8811 *) ac_try_echo=$ac_try;; | |
8812 esac | |
8813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8814 $as_echo "$ac_try_echo") >&5 | |
8815 (eval "$ac_compile") 2>conftest.er1 | |
8816 ac_status=$? | |
8817 grep -v '^ *+' conftest.er1 >conftest.err | |
8818 rm -f conftest.er1 | |
8819 cat conftest.err >&5 | |
8820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8821 (exit $ac_status); } && { | |
8822 test -z "$ac_c_werror_flag" || | |
8823 test ! -s conftest.err | |
8824 } && test -s conftest.$ac_objext; then | |
8825 ac_cv_member_struct_ifreq_ifr_hwaddr=yes | |
8826 else | |
8827 $as_echo "$as_me: failed program was:" >&5 | |
8828 sed 's/^/| /' conftest.$ac_ext >&5 | |
8829 | |
8830 ac_cv_member_struct_ifreq_ifr_hwaddr=no | |
8831 fi | |
8832 | |
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8834 fi | |
8835 | |
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8837 fi | |
8838 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5 | |
8839 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; } | |
8840 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then | |
8841 | 6796 |
8842 cat >>confdefs.h <<_ACEOF | 6797 cat >>confdefs.h <<_ACEOF |
8843 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 | 6798 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 |
8844 _ACEOF | 6799 _ACEOF |
8845 | 6800 |
8846 | 6801 |
8847 fi | 6802 fi |
8848 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5 | 6803 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default |
8849 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; } | |
8850 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then | |
8851 $as_echo_n "(cached) " >&6 | |
8852 else | |
8853 cat >conftest.$ac_ext <<_ACEOF | |
8854 /* confdefs.h. */ | |
8855 _ACEOF | |
8856 cat confdefs.h >>conftest.$ac_ext | |
8857 cat >>conftest.$ac_ext <<_ACEOF | |
8858 /* end confdefs.h. */ | |
8859 $ac_includes_default | |
8860 #if HAVE_SYS_SOCKET_H | 6804 #if HAVE_SYS_SOCKET_H |
8861 #include <sys/socket.h> | 6805 #include <sys/socket.h> |
8862 #endif | 6806 #endif |
8863 #if HAVE_NET_IF_H | 6807 #if HAVE_NET_IF_H |
8864 #include <net/if.h> | 6808 #include <net/if.h> |
8865 #endif | 6809 #endif |
8866 | 6810 " |
8867 int | 6811 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then : |
8868 main () | |
8869 { | |
8870 static struct ifreq ac_aggr; | |
8871 if (ac_aggr.ifr_netmask) | |
8872 return 0; | |
8873 ; | |
8874 return 0; | |
8875 } | |
8876 _ACEOF | |
8877 rm -f conftest.$ac_objext | |
8878 if { (ac_try="$ac_compile" | |
8879 case "(($ac_try" in | |
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8881 *) ac_try_echo=$ac_try;; | |
8882 esac | |
8883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8884 $as_echo "$ac_try_echo") >&5 | |
8885 (eval "$ac_compile") 2>conftest.er1 | |
8886 ac_status=$? | |
8887 grep -v '^ *+' conftest.er1 >conftest.err | |
8888 rm -f conftest.er1 | |
8889 cat conftest.err >&5 | |
8890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8891 (exit $ac_status); } && { | |
8892 test -z "$ac_c_werror_flag" || | |
8893 test ! -s conftest.err | |
8894 } && test -s conftest.$ac_objext; then | |
8895 ac_cv_member_struct_ifreq_ifr_netmask=yes | |
8896 else | |
8897 $as_echo "$as_me: failed program was:" >&5 | |
8898 sed 's/^/| /' conftest.$ac_ext >&5 | |
8899 | |
8900 cat >conftest.$ac_ext <<_ACEOF | |
8901 /* confdefs.h. */ | |
8902 _ACEOF | |
8903 cat confdefs.h >>conftest.$ac_ext | |
8904 cat >>conftest.$ac_ext <<_ACEOF | |
8905 /* end confdefs.h. */ | |
8906 $ac_includes_default | |
8907 #if HAVE_SYS_SOCKET_H | |
8908 #include <sys/socket.h> | |
8909 #endif | |
8910 #if HAVE_NET_IF_H | |
8911 #include <net/if.h> | |
8912 #endif | |
8913 | |
8914 int | |
8915 main () | |
8916 { | |
8917 static struct ifreq ac_aggr; | |
8918 if (sizeof ac_aggr.ifr_netmask) | |
8919 return 0; | |
8920 ; | |
8921 return 0; | |
8922 } | |
8923 _ACEOF | |
8924 rm -f conftest.$ac_objext | |
8925 if { (ac_try="$ac_compile" | |
8926 case "(($ac_try" in | |
8927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8928 *) ac_try_echo=$ac_try;; | |
8929 esac | |
8930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8931 $as_echo "$ac_try_echo") >&5 | |
8932 (eval "$ac_compile") 2>conftest.er1 | |
8933 ac_status=$? | |
8934 grep -v '^ *+' conftest.er1 >conftest.err | |
8935 rm -f conftest.er1 | |
8936 cat conftest.err >&5 | |
8937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8938 (exit $ac_status); } && { | |
8939 test -z "$ac_c_werror_flag" || | |
8940 test ! -s conftest.err | |
8941 } && test -s conftest.$ac_objext; then | |
8942 ac_cv_member_struct_ifreq_ifr_netmask=yes | |
8943 else | |
8944 $as_echo "$as_me: failed program was:" >&5 | |
8945 sed 's/^/| /' conftest.$ac_ext >&5 | |
8946 | |
8947 ac_cv_member_struct_ifreq_ifr_netmask=no | |
8948 fi | |
8949 | |
8950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8951 fi | |
8952 | |
8953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8954 fi | |
8955 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5 | |
8956 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; } | |
8957 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then | |
8958 | |
8959 cat >>confdefs.h <<_ACEOF | |
8960 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 | |
8961 _ACEOF | |
8962 | |
8963 | |
8964 fi | |
8965 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5 | |
8966 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; } | |
8967 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then | |
8968 $as_echo_n "(cached) " >&6 | |
8969 else | |
8970 cat >conftest.$ac_ext <<_ACEOF | |
8971 /* confdefs.h. */ | |
8972 _ACEOF | |
8973 cat confdefs.h >>conftest.$ac_ext | |
8974 cat >>conftest.$ac_ext <<_ACEOF | |
8975 /* end confdefs.h. */ | |
8976 $ac_includes_default | |
8977 #if HAVE_SYS_SOCKET_H | |
8978 #include <sys/socket.h> | |
8979 #endif | |
8980 #if HAVE_NET_IF_H | |
8981 #include <net/if.h> | |
8982 #endif | |
8983 | |
8984 int | |
8985 main () | |
8986 { | |
8987 static struct ifreq ac_aggr; | |
8988 if (ac_aggr.ifr_broadaddr) | |
8989 return 0; | |
8990 ; | |
8991 return 0; | |
8992 } | |
8993 _ACEOF | |
8994 rm -f conftest.$ac_objext | |
8995 if { (ac_try="$ac_compile" | |
8996 case "(($ac_try" in | |
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8998 *) ac_try_echo=$ac_try;; | |
8999 esac | |
9000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9001 $as_echo "$ac_try_echo") >&5 | |
9002 (eval "$ac_compile") 2>conftest.er1 | |
9003 ac_status=$? | |
9004 grep -v '^ *+' conftest.er1 >conftest.err | |
9005 rm -f conftest.er1 | |
9006 cat conftest.err >&5 | |
9007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9008 (exit $ac_status); } && { | |
9009 test -z "$ac_c_werror_flag" || | |
9010 test ! -s conftest.err | |
9011 } && test -s conftest.$ac_objext; then | |
9012 ac_cv_member_struct_ifreq_ifr_broadaddr=yes | |
9013 else | |
9014 $as_echo "$as_me: failed program was:" >&5 | |
9015 sed 's/^/| /' conftest.$ac_ext >&5 | |
9016 | |
9017 cat >conftest.$ac_ext <<_ACEOF | |
9018 /* confdefs.h. */ | |
9019 _ACEOF | |
9020 cat confdefs.h >>conftest.$ac_ext | |
9021 cat >>conftest.$ac_ext <<_ACEOF | |
9022 /* end confdefs.h. */ | |
9023 $ac_includes_default | |
9024 #if HAVE_SYS_SOCKET_H | |
9025 #include <sys/socket.h> | |
9026 #endif | |
9027 #if HAVE_NET_IF_H | |
9028 #include <net/if.h> | |
9029 #endif | |
9030 | |
9031 int | |
9032 main () | |
9033 { | |
9034 static struct ifreq ac_aggr; | |
9035 if (sizeof ac_aggr.ifr_broadaddr) | |
9036 return 0; | |
9037 ; | |
9038 return 0; | |
9039 } | |
9040 _ACEOF | |
9041 rm -f conftest.$ac_objext | |
9042 if { (ac_try="$ac_compile" | |
9043 case "(($ac_try" in | |
9044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9045 *) ac_try_echo=$ac_try;; | |
9046 esac | |
9047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9048 $as_echo "$ac_try_echo") >&5 | |
9049 (eval "$ac_compile") 2>conftest.er1 | |
9050 ac_status=$? | |
9051 grep -v '^ *+' conftest.er1 >conftest.err | |
9052 rm -f conftest.er1 | |
9053 cat conftest.err >&5 | |
9054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9055 (exit $ac_status); } && { | |
9056 test -z "$ac_c_werror_flag" || | |
9057 test ! -s conftest.err | |
9058 } && test -s conftest.$ac_objext; then | |
9059 ac_cv_member_struct_ifreq_ifr_broadaddr=yes | |
9060 else | |
9061 $as_echo "$as_me: failed program was:" >&5 | |
9062 sed 's/^/| /' conftest.$ac_ext >&5 | |
9063 | |
9064 ac_cv_member_struct_ifreq_ifr_broadaddr=no | |
9065 fi | |
9066 | |
9067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9068 fi | |
9069 | |
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9071 fi | |
9072 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5 | |
9073 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; } | |
9074 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then | |
9075 | |
9076 cat >>confdefs.h <<_ACEOF | |
9077 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | |
9078 _ACEOF | |
9079 | |
9080 | |
9081 fi | |
9082 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5 | |
9083 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; } | |
9084 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then | |
9085 $as_echo_n "(cached) " >&6 | |
9086 else | |
9087 cat >conftest.$ac_ext <<_ACEOF | |
9088 /* confdefs.h. */ | |
9089 _ACEOF | |
9090 cat confdefs.h >>conftest.$ac_ext | |
9091 cat >>conftest.$ac_ext <<_ACEOF | |
9092 /* end confdefs.h. */ | |
9093 $ac_includes_default | |
9094 #if HAVE_SYS_SOCKET_H | |
9095 #include <sys/socket.h> | |
9096 #endif | |
9097 #if HAVE_NET_IF_H | |
9098 #include <net/if.h> | |
9099 #endif | |
9100 | |
9101 int | |
9102 main () | |
9103 { | |
9104 static struct ifreq ac_aggr; | |
9105 if (ac_aggr.ifr_addr) | |
9106 return 0; | |
9107 ; | |
9108 return 0; | |
9109 } | |
9110 _ACEOF | |
9111 rm -f conftest.$ac_objext | |
9112 if { (ac_try="$ac_compile" | |
9113 case "(($ac_try" in | |
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9115 *) ac_try_echo=$ac_try;; | |
9116 esac | |
9117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9118 $as_echo "$ac_try_echo") >&5 | |
9119 (eval "$ac_compile") 2>conftest.er1 | |
9120 ac_status=$? | |
9121 grep -v '^ *+' conftest.er1 >conftest.err | |
9122 rm -f conftest.er1 | |
9123 cat conftest.err >&5 | |
9124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9125 (exit $ac_status); } && { | |
9126 test -z "$ac_c_werror_flag" || | |
9127 test ! -s conftest.err | |
9128 } && test -s conftest.$ac_objext; then | |
9129 ac_cv_member_struct_ifreq_ifr_addr=yes | |
9130 else | |
9131 $as_echo "$as_me: failed program was:" >&5 | |
9132 sed 's/^/| /' conftest.$ac_ext >&5 | |
9133 | |
9134 cat >conftest.$ac_ext <<_ACEOF | |
9135 /* confdefs.h. */ | |
9136 _ACEOF | |
9137 cat confdefs.h >>conftest.$ac_ext | |
9138 cat >>conftest.$ac_ext <<_ACEOF | |
9139 /* end confdefs.h. */ | |
9140 $ac_includes_default | |
9141 #if HAVE_SYS_SOCKET_H | |
9142 #include <sys/socket.h> | |
9143 #endif | |
9144 #if HAVE_NET_IF_H | |
9145 #include <net/if.h> | |
9146 #endif | |
9147 | |
9148 int | |
9149 main () | |
9150 { | |
9151 static struct ifreq ac_aggr; | |
9152 if (sizeof ac_aggr.ifr_addr) | |
9153 return 0; | |
9154 ; | |
9155 return 0; | |
9156 } | |
9157 _ACEOF | |
9158 rm -f conftest.$ac_objext | |
9159 if { (ac_try="$ac_compile" | |
9160 case "(($ac_try" in | |
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9162 *) ac_try_echo=$ac_try;; | |
9163 esac | |
9164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9165 $as_echo "$ac_try_echo") >&5 | |
9166 (eval "$ac_compile") 2>conftest.er1 | |
9167 ac_status=$? | |
9168 grep -v '^ *+' conftest.er1 >conftest.err | |
9169 rm -f conftest.er1 | |
9170 cat conftest.err >&5 | |
9171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9172 (exit $ac_status); } && { | |
9173 test -z "$ac_c_werror_flag" || | |
9174 test ! -s conftest.err | |
9175 } && test -s conftest.$ac_objext; then | |
9176 ac_cv_member_struct_ifreq_ifr_addr=yes | |
9177 else | |
9178 $as_echo "$as_me: failed program was:" >&5 | |
9179 sed 's/^/| /' conftest.$ac_ext >&5 | |
9180 | |
9181 ac_cv_member_struct_ifreq_ifr_addr=no | |
9182 fi | |
9183 | |
9184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9185 fi | |
9186 | |
9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9188 fi | |
9189 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5 | |
9190 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; } | |
9191 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then | |
9192 | 6812 |
9193 cat >>confdefs.h <<_ACEOF | 6813 cat >>confdefs.h <<_ACEOF |
9194 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | 6814 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 |
9195 _ACEOF | 6815 _ACEOF |
9196 | 6816 |
9197 | 6817 |
9198 fi | 6818 fi |
9199 | 6819 |
9200 | 6820 |
9201 | 6821 |
9202 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5 | 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 |
9203 $as_echo_n "checking for function prototypes... " >&6; } | 6823 $as_echo_n "checking for function prototypes... " >&6; } |
9204 if test "$ac_cv_prog_cc_c89" != no; then | 6824 if test "$ac_cv_prog_cc_c89" != no; then |
9205 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9206 $as_echo "yes" >&6; } | 6826 $as_echo "yes" >&6; } |
9207 | 6827 |
9208 cat >>confdefs.h <<\_ACEOF | 6828 $as_echo "#define PROTOTYPES 1" >>confdefs.h |
9209 #define PROTOTYPES 1 | 6829 |
9210 _ACEOF | 6830 |
9211 | 6831 $as_echo "#define __PROTOTYPES 1" >>confdefs.h |
9212 | 6832 |
9213 cat >>confdefs.h <<\_ACEOF | 6833 else |
9214 #define __PROTOTYPES 1 | 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9215 _ACEOF | |
9216 | |
9217 else | |
9218 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9219 $as_echo "no" >&6; } | 6835 $as_echo "no" >&6; } |
9220 fi | 6836 fi |
9221 | 6837 |
9222 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5 | 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
9223 $as_echo_n "checking for working volatile... " >&6; } | 6839 $as_echo_n "checking for working volatile... " >&6; } |
9224 if test "${ac_cv_c_volatile+set}" = set; then | 6840 if test "${ac_cv_c_volatile+set}" = set; then : |
9225 $as_echo_n "(cached) " >&6 | 6841 $as_echo_n "(cached) " >&6 |
9226 else | 6842 else |
9227 cat >conftest.$ac_ext <<_ACEOF | 6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9228 /* confdefs.h. */ | |
9229 _ACEOF | |
9230 cat confdefs.h >>conftest.$ac_ext | |
9231 cat >>conftest.$ac_ext <<_ACEOF | |
9232 /* end confdefs.h. */ | 6844 /* end confdefs.h. */ |
9233 | 6845 |
9234 int | 6846 int |
9235 main () | 6847 main () |
9236 { | 6848 { |
9240 return !x && !y; | 6852 return !x && !y; |
9241 ; | 6853 ; |
9242 return 0; | 6854 return 0; |
9243 } | 6855 } |
9244 _ACEOF | 6856 _ACEOF |
9245 rm -f conftest.$ac_objext | 6857 if ac_fn_c_try_compile "$LINENO"; then : |
9246 if { (ac_try="$ac_compile" | |
9247 case "(($ac_try" in | |
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9249 *) ac_try_echo=$ac_try;; | |
9250 esac | |
9251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9252 $as_echo "$ac_try_echo") >&5 | |
9253 (eval "$ac_compile") 2>conftest.er1 | |
9254 ac_status=$? | |
9255 grep -v '^ *+' conftest.er1 >conftest.err | |
9256 rm -f conftest.er1 | |
9257 cat conftest.err >&5 | |
9258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9259 (exit $ac_status); } && { | |
9260 test -z "$ac_c_werror_flag" || | |
9261 test ! -s conftest.err | |
9262 } && test -s conftest.$ac_objext; then | |
9263 ac_cv_c_volatile=yes | 6858 ac_cv_c_volatile=yes |
9264 else | 6859 else |
9265 $as_echo "$as_me: failed program was:" >&5 | 6860 ac_cv_c_volatile=no |
9266 sed 's/^/| /' conftest.$ac_ext >&5 | 6861 fi |
9267 | |
9268 ac_cv_c_volatile=no | |
9269 fi | |
9270 | |
9271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9272 fi | 6863 fi |
9273 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 | 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 |
9274 $as_echo "$ac_cv_c_volatile" >&6; } | 6865 $as_echo "$ac_cv_c_volatile" >&6; } |
9275 if test $ac_cv_c_volatile = no; then | 6866 if test $ac_cv_c_volatile = no; then |
9276 | 6867 |
9277 cat >>confdefs.h <<\_ACEOF | 6868 $as_echo "#define volatile /**/" >>confdefs.h |
9278 #define volatile /**/ | 6869 |
9279 _ACEOF | 6870 fi |
9280 | 6871 |
9281 fi | 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
9282 | |
9283 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
9284 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 6873 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
9285 if test "${ac_cv_c_const+set}" = set; then | 6874 if test "${ac_cv_c_const+set}" = set; then : |
9286 $as_echo_n "(cached) " >&6 | 6875 $as_echo_n "(cached) " >&6 |
9287 else | 6876 else |
9288 cat >conftest.$ac_ext <<_ACEOF | 6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9289 /* confdefs.h. */ | |
9290 _ACEOF | |
9291 cat confdefs.h >>conftest.$ac_ext | |
9292 cat >>conftest.$ac_ext <<_ACEOF | |
9293 /* end confdefs.h. */ | 6878 /* end confdefs.h. */ |
9294 | 6879 |
9295 int | 6880 int |
9296 main () | 6881 main () |
9297 { | 6882 { |
9347 | 6932 |
9348 ; | 6933 ; |
9349 return 0; | 6934 return 0; |
9350 } | 6935 } |
9351 _ACEOF | 6936 _ACEOF |
9352 rm -f conftest.$ac_objext | 6937 if ac_fn_c_try_compile "$LINENO"; then : |
9353 if { (ac_try="$ac_compile" | |
9354 case "(($ac_try" in | |
9355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9356 *) ac_try_echo=$ac_try;; | |
9357 esac | |
9358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9359 $as_echo "$ac_try_echo") >&5 | |
9360 (eval "$ac_compile") 2>conftest.er1 | |
9361 ac_status=$? | |
9362 grep -v '^ *+' conftest.er1 >conftest.err | |
9363 rm -f conftest.er1 | |
9364 cat conftest.err >&5 | |
9365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9366 (exit $ac_status); } && { | |
9367 test -z "$ac_c_werror_flag" || | |
9368 test ! -s conftest.err | |
9369 } && test -s conftest.$ac_objext; then | |
9370 ac_cv_c_const=yes | 6938 ac_cv_c_const=yes |
9371 else | 6939 else |
9372 $as_echo "$as_me: failed program was:" >&5 | 6940 ac_cv_c_const=no |
9373 sed 's/^/| /' conftest.$ac_ext >&5 | 6941 fi |
9374 | |
9375 ac_cv_c_const=no | |
9376 fi | |
9377 | |
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9379 fi | 6943 fi |
9380 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
9381 $as_echo "$ac_cv_c_const" >&6; } | 6945 $as_echo "$ac_cv_c_const" >&6; } |
9382 if test $ac_cv_c_const = no; then | 6946 if test $ac_cv_c_const = no; then |
9383 | 6947 |
9384 cat >>confdefs.h <<\_ACEOF | 6948 $as_echo "#define const /**/" >>confdefs.h |
9385 #define const /**/ | 6949 |
9386 _ACEOF | 6950 fi |
9387 | 6951 |
9388 fi | 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5 |
9389 | |
9390 { $as_echo "$as_me:$LINENO: checking for void * support" >&5 | |
9391 $as_echo_n "checking for void * support... " >&6; } | 6953 $as_echo_n "checking for void * support... " >&6; } |
9392 if test "${emacs_cv_void_star+set}" = set; then | 6954 if test "${emacs_cv_void_star+set}" = set; then : |
9393 $as_echo_n "(cached) " >&6 | 6955 $as_echo_n "(cached) " >&6 |
9394 else | 6956 else |
9395 cat >conftest.$ac_ext <<_ACEOF | 6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9396 /* confdefs.h. */ | |
9397 _ACEOF | |
9398 cat confdefs.h >>conftest.$ac_ext | |
9399 cat >>conftest.$ac_ext <<_ACEOF | |
9400 /* end confdefs.h. */ | 6958 /* end confdefs.h. */ |
9401 | 6959 |
9402 int | 6960 int |
9403 main () | 6961 main () |
9404 { | 6962 { |
9405 void * foo; | 6963 void * foo; |
9406 ; | 6964 ; |
9407 return 0; | 6965 return 0; |
9408 } | 6966 } |
9409 _ACEOF | 6967 _ACEOF |
9410 rm -f conftest.$ac_objext | 6968 if ac_fn_c_try_compile "$LINENO"; then : |
9411 if { (ac_try="$ac_compile" | |
9412 case "(($ac_try" in | |
9413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9414 *) ac_try_echo=$ac_try;; | |
9415 esac | |
9416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9417 $as_echo "$ac_try_echo") >&5 | |
9418 (eval "$ac_compile") 2>conftest.er1 | |
9419 ac_status=$? | |
9420 grep -v '^ *+' conftest.er1 >conftest.err | |
9421 rm -f conftest.er1 | |
9422 cat conftest.err >&5 | |
9423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9424 (exit $ac_status); } && { | |
9425 test -z "$ac_c_werror_flag" || | |
9426 test ! -s conftest.err | |
9427 } && test -s conftest.$ac_objext; then | |
9428 emacs_cv_void_star=yes | 6969 emacs_cv_void_star=yes |
9429 else | 6970 else |
9430 $as_echo "$as_me: failed program was:" >&5 | 6971 emacs_cv_void_star=no |
9431 sed 's/^/| /' conftest.$ac_ext >&5 | 6972 fi |
9432 | |
9433 emacs_cv_void_star=no | |
9434 fi | |
9435 | |
9436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9437 fi | 6974 fi |
9438 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 | 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5 |
9439 $as_echo "$emacs_cv_void_star" >&6; } | 6976 $as_echo "$emacs_cv_void_star" >&6; } |
9440 if test $emacs_cv_void_star = yes; then | 6977 if test $emacs_cv_void_star = yes; then |
9441 cat >>confdefs.h <<\_ACEOF | 6978 $as_echo "#define POINTER_TYPE void" >>confdefs.h |
9442 #define POINTER_TYPE void | 6979 |
9443 _ACEOF | 6980 else |
9444 | 6981 $as_echo "#define POINTER_TYPE char" >>confdefs.h |
9445 else | 6982 |
9446 cat >>confdefs.h <<\_ACEOF | 6983 fi |
9447 #define POINTER_TYPE char | 6984 |
9448 _ACEOF | 6985 |
9449 | 6986 |
9450 fi | 6987 |
9451 | 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
9452 | |
9453 | |
9454 | |
9455 | |
9456 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
9457 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | 6989 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
9458 set x ${MAKE-make} | 6990 set x ${MAKE-make} |
9459 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | 6991 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
9460 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | 6992 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
9461 $as_echo_n "(cached) " >&6 | 6993 $as_echo_n "(cached) " >&6 |
9462 else | 6994 else |
9463 cat >conftest.make <<\_ACEOF | 6995 cat >conftest.make <<\_ACEOF |
9464 SHELL = /bin/sh | 6996 SHELL = /bin/sh |
9465 all: | 6997 all: |
9473 eval ac_cv_prog_make_${ac_make}_set=no;; | 7005 eval ac_cv_prog_make_${ac_make}_set=no;; |
9474 esac | 7006 esac |
9475 rm -f conftest.make | 7007 rm -f conftest.make |
9476 fi | 7008 fi |
9477 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | 7009 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
9478 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9479 $as_echo "yes" >&6; } | 7011 $as_echo "yes" >&6; } |
9480 SET_MAKE= | 7012 SET_MAKE= |
9481 else | 7013 else |
9482 { $as_echo "$as_me:$LINENO: result: no" >&5 | 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9483 $as_echo "no" >&6; } | 7015 $as_echo "no" >&6; } |
9484 SET_MAKE="MAKE=${MAKE-make}" | 7016 SET_MAKE="MAKE=${MAKE-make}" |
9485 fi | 7017 fi |
9486 | 7018 |
9487 | 7019 |
9488 DEPFLAGS= | 7020 DEPFLAGS= |
9489 MKDEPDIR=":" | 7021 MKDEPDIR=":" |
9490 deps_frag=deps.mk | 7022 deps_frag=deps.mk |
9491 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then | 7023 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then |
9492 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5 | 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5 |
9493 $as_echo_n "checking whether we are using GNU Make... " >&6; } | 7025 $as_echo_n "checking whether we are using GNU Make... " >&6; } |
9494 HAVE_GNU_MAKE=no | 7026 HAVE_GNU_MAKE=no |
9495 testval=`make --version 2>/dev/null | grep 'GNU Make'` | 7027 testval=`make --version 2>/dev/null | grep 'GNU Make'` |
9496 if test "x$testval" != x; then | 7028 if test "x$testval" != x; then |
9497 HAVE_GNU_MAKE=yes | 7029 HAVE_GNU_MAKE=yes |
9498 else | 7030 else |
9499 ac_enable_autodepend=no | 7031 ac_enable_autodepend=no |
9500 fi | 7032 fi |
9501 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5 | 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5 |
9502 $as_echo "$HAVE_GNU_MAKE" >&6; } | 7034 $as_echo "$HAVE_GNU_MAKE" >&6; } |
9503 if test $HAVE_GNU_MAKE = yes; then | 7035 if test $HAVE_GNU_MAKE = yes; then |
9504 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5 | 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5 |
9505 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } | 7037 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } |
9506 SAVE_CFLAGS="$CFLAGS" | 7038 SAVE_CFLAGS="$CFLAGS" |
9507 CFLAGS="$CFLAGS -MMD -MF deps.d" | 7039 CFLAGS="$CFLAGS -MMD -MF deps.d" |
9508 cat >conftest.$ac_ext <<_ACEOF | 7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9509 /* confdefs.h. */ | |
9510 _ACEOF | |
9511 cat confdefs.h >>conftest.$ac_ext | |
9512 cat >>conftest.$ac_ext <<_ACEOF | |
9513 /* end confdefs.h. */ | 7041 /* end confdefs.h. */ |
9514 | 7042 |
9515 int | 7043 int |
9516 main () | 7044 main () |
9517 { | 7045 { |
9518 | 7046 |
9519 ; | 7047 ; |
9520 return 0; | 7048 return 0; |
9521 } | 7049 } |
9522 _ACEOF | 7050 _ACEOF |
9523 rm -f conftest.$ac_objext | 7051 if ac_fn_c_try_compile "$LINENO"; then : |
9524 if { (ac_try="$ac_compile" | 7052 |
9525 case "(($ac_try" in | 7053 else |
9526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 7054 ac_enable_autodepend=no |
9527 *) ac_try_echo=$ac_try;; | 7055 fi |
9528 esac | |
9529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9530 $as_echo "$ac_try_echo") >&5 | |
9531 (eval "$ac_compile") 2>conftest.er1 | |
9532 ac_status=$? | |
9533 grep -v '^ *+' conftest.er1 >conftest.err | |
9534 rm -f conftest.er1 | |
9535 cat conftest.err >&5 | |
9536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9537 (exit $ac_status); } && { | |
9538 test -z "$ac_c_werror_flag" || | |
9539 test ! -s conftest.err | |
9540 } && test -s conftest.$ac_objext; then | |
9541 : | |
9542 else | |
9543 $as_echo "$as_me: failed program was:" >&5 | |
9544 sed 's/^/| /' conftest.$ac_ext >&5 | |
9545 | |
9546 ac_enable_autodepend=no | |
9547 fi | |
9548 | |
9549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 7056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9550 CFLAGS="$SAVE_CFLAGS" | 7057 CFLAGS="$SAVE_CFLAGS" |
9551 test -f deps.d || ac_enable_autodepend=no | 7058 test -f deps.d || ac_enable_autodepend=no |
9552 rm -rf deps.d | 7059 rm -rf deps.d |
9553 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5 | 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5 |
9554 $as_echo "$ac_enable_autodepend" >&6; } | 7061 $as_echo "$ac_enable_autodepend" >&6; } |
9555 fi | 7062 fi |
9556 if test $ac_enable_autodepend = yes; then | 7063 if test $ac_enable_autodepend = yes; then |
9557 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d' | 7064 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d' |
9558 ## In parallel builds, another make might create depdir between | 7065 ## In parallel builds, another make might create depdir between |
9566 | 7073 |
9567 | 7074 |
9568 | 7075 |
9569 | 7076 |
9570 | 7077 |
9571 { $as_echo "$as_me:$LINENO: checking for long file names" >&5 | 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 |
9572 $as_echo_n "checking for long file names... " >&6; } | 7079 $as_echo_n "checking for long file names... " >&6; } |
9573 if test "${ac_cv_sys_long_file_names+set}" = set; then | 7080 if test "${ac_cv_sys_long_file_names+set}" = set; then : |
9574 $as_echo_n "(cached) " >&6 | 7081 $as_echo_n "(cached) " >&6 |
9575 else | 7082 else |
9576 ac_cv_sys_long_file_names=yes | 7083 ac_cv_sys_long_file_names=yes |
9577 # Test for long file names in all the places we know might matter: | 7084 # Test for long file names in all the places we know might matter: |
9578 # . the current directory, where building will happen | 7085 # . the current directory, where building will happen |
9598 ac_cv_sys_long_file_names=no | 7105 ac_cv_sys_long_file_names=no |
9599 rm -f -r "$ac_xdir" 2>/dev/null | 7106 rm -f -r "$ac_xdir" 2>/dev/null |
9600 test $ac_cv_sys_long_file_names = no && break | 7107 test $ac_cv_sys_long_file_names = no && break |
9601 done | 7108 done |
9602 fi | 7109 fi |
9603 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 | 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 |
9604 $as_echo "$ac_cv_sys_long_file_names" >&6; } | 7111 $as_echo "$ac_cv_sys_long_file_names" >&6; } |
9605 if test $ac_cv_sys_long_file_names = yes; then | 7112 if test $ac_cv_sys_long_file_names = yes; then |
9606 | 7113 |
9607 cat >>confdefs.h <<\_ACEOF | 7114 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h |
9608 #define HAVE_LONG_FILE_NAMES 1 | |
9609 _ACEOF | |
9610 | 7115 |
9611 fi | 7116 fi |
9612 | 7117 |
9613 | 7118 |
9614 #### Choose a window system. | 7119 #### Choose a window system. |
9615 | 7120 |
9616 { $as_echo "$as_me:$LINENO: checking for X" >&5 | 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
9617 $as_echo_n "checking for X... " >&6; } | 7122 $as_echo_n "checking for X... " >&6; } |
9618 | 7123 |
9619 | 7124 |
9620 # Check whether --with-x was given. | 7125 # Check whether --with-x was given. |
9621 if test "${with_x+set}" = set; then | 7126 if test "${with_x+set}" = set; then : |
9622 withval=$with_x; | 7127 withval=$with_x; |
9623 fi | 7128 fi |
9624 | 7129 |
9625 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | 7130 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9626 if test "x$with_x" = xno; then | 7131 if test "x$with_x" = xno; then |
9627 # The user explicitly disabled X. | 7132 # The user explicitly disabled X. |
9628 have_x=disabled | 7133 have_x=disabled |
9629 else | 7134 else |
9630 case $x_includes,$x_libraries in #( | 7135 case $x_includes,$x_libraries in #( |
9631 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 | 7136 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( |
9632 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;} | 7137 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : |
9633 { (exit 1); exit 1; }; };; #( | |
9634 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then | |
9635 $as_echo_n "(cached) " >&6 | 7138 $as_echo_n "(cached) " >&6 |
9636 else | 7139 else |
9637 # One or both of the vars are not set, and there is no cached value. | 7140 # One or both of the vars are not set, and there is no cached value. |
9638 ac_x_includes=no ac_x_libraries=no | 7141 ac_x_includes=no ac_x_libraries=no |
9639 rm -f -r conftest.dir | 7142 rm -f -r conftest.dir |
9665 case $ac_im_incroot in | 7168 case $ac_im_incroot in |
9666 /usr/include) ac_x_includes= ;; | 7169 /usr/include) ac_x_includes= ;; |
9667 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | 7170 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
9668 esac | 7171 esac |
9669 case $ac_im_usrlibdir in | 7172 case $ac_im_usrlibdir in |
9670 /usr/lib | /lib) ;; | 7173 /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
9671 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | 7174 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
9672 esac | 7175 esac |
9673 fi | 7176 fi |
9674 cd .. | 7177 cd .. |
9675 rm -f -r conftest.dir | 7178 rm -f -r conftest.dir |
9677 | 7180 |
9678 # Standard set of common directories for X headers. | 7181 # Standard set of common directories for X headers. |
9679 # Check X11 before X11Rn because it is often a symlink to the current release. | 7182 # Check X11 before X11Rn because it is often a symlink to the current release. |
9680 ac_x_header_dirs=' | 7183 ac_x_header_dirs=' |
9681 /usr/X11/include | 7184 /usr/X11/include |
7185 /usr/X11R7/include | |
9682 /usr/X11R6/include | 7186 /usr/X11R6/include |
9683 /usr/X11R5/include | 7187 /usr/X11R5/include |
9684 /usr/X11R4/include | 7188 /usr/X11R4/include |
9685 | 7189 |
9686 /usr/include/X11 | 7190 /usr/include/X11 |
7191 /usr/include/X11R7 | |
9687 /usr/include/X11R6 | 7192 /usr/include/X11R6 |
9688 /usr/include/X11R5 | 7193 /usr/include/X11R5 |
9689 /usr/include/X11R4 | 7194 /usr/include/X11R4 |
9690 | 7195 |
9691 /usr/local/X11/include | 7196 /usr/local/X11/include |
7197 /usr/local/X11R7/include | |
9692 /usr/local/X11R6/include | 7198 /usr/local/X11R6/include |
9693 /usr/local/X11R5/include | 7199 /usr/local/X11R5/include |
9694 /usr/local/X11R4/include | 7200 /usr/local/X11R4/include |
9695 | 7201 |
9696 /usr/local/include/X11 | 7202 /usr/local/include/X11 |
7203 /usr/local/include/X11R7 | |
9697 /usr/local/include/X11R6 | 7204 /usr/local/include/X11R6 |
9698 /usr/local/include/X11R5 | 7205 /usr/local/include/X11R5 |
9699 /usr/local/include/X11R4 | 7206 /usr/local/include/X11R4 |
9700 | 7207 |
9701 /usr/X386/include | 7208 /usr/X386/include |
9713 /usr/openwin/share/include' | 7220 /usr/openwin/share/include' |
9714 | 7221 |
9715 if test "$ac_x_includes" = no; then | 7222 if test "$ac_x_includes" = no; then |
9716 # Guess where to find include files, by looking for Xlib.h. | 7223 # Guess where to find include files, by looking for Xlib.h. |
9717 # First, try using that file with no special directory specified. | 7224 # First, try using that file with no special directory specified. |
9718 cat >conftest.$ac_ext <<_ACEOF | 7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9719 /* confdefs.h. */ | |
9720 _ACEOF | |
9721 cat confdefs.h >>conftest.$ac_ext | |
9722 cat >>conftest.$ac_ext <<_ACEOF | |
9723 /* end confdefs.h. */ | 7226 /* end confdefs.h. */ |
9724 #include <X11/Xlib.h> | 7227 #include <X11/Xlib.h> |
9725 _ACEOF | 7228 _ACEOF |
9726 if { (ac_try="$ac_cpp conftest.$ac_ext" | 7229 if ac_fn_c_try_cpp "$LINENO"; then : |
9727 case "(($ac_try" in | |
9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9729 *) ac_try_echo=$ac_try;; | |
9730 esac | |
9731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9732 $as_echo "$ac_try_echo") >&5 | |
9733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9734 ac_status=$? | |
9735 grep -v '^ *+' conftest.er1 >conftest.err | |
9736 rm -f conftest.er1 | |
9737 cat conftest.err >&5 | |
9738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9739 (exit $ac_status); } >/dev/null && { | |
9740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9741 test ! -s conftest.err | |
9742 }; then | |
9743 # We can compile using X headers with no special include directory. | 7230 # We can compile using X headers with no special include directory. |
9744 ac_x_includes= | 7231 ac_x_includes= |
9745 else | 7232 else |
9746 $as_echo "$as_me: failed program was:" >&5 | |
9747 sed 's/^/| /' conftest.$ac_ext >&5 | |
9748 | |
9749 for ac_dir in $ac_x_header_dirs; do | 7233 for ac_dir in $ac_x_header_dirs; do |
9750 if test -r "$ac_dir/X11/Xlib.h"; then | 7234 if test -r "$ac_dir/X11/Xlib.h"; then |
9751 ac_x_includes=$ac_dir | 7235 ac_x_includes=$ac_dir |
9752 break | 7236 break |
9753 fi | 7237 fi |
9754 done | 7238 done |
9755 fi | 7239 fi |
9756 | |
9757 rm -f conftest.err conftest.$ac_ext | 7240 rm -f conftest.err conftest.$ac_ext |
9758 fi # $ac_x_includes = no | 7241 fi # $ac_x_includes = no |
9759 | 7242 |
9760 if test "$ac_x_libraries" = no; then | 7243 if test "$ac_x_libraries" = no; then |
9761 # Check for the libraries. | 7244 # Check for the libraries. |
9762 # See if we find them without any special options. | 7245 # See if we find them without any special options. |
9763 # Don't add to $LIBS permanently. | 7246 # Don't add to $LIBS permanently. |
9764 ac_save_LIBS=$LIBS | 7247 ac_save_LIBS=$LIBS |
9765 LIBS="-lX11 $LIBS" | 7248 LIBS="-lX11 $LIBS" |
9766 cat >conftest.$ac_ext <<_ACEOF | 7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9767 /* confdefs.h. */ | |
9768 _ACEOF | |
9769 cat confdefs.h >>conftest.$ac_ext | |
9770 cat >>conftest.$ac_ext <<_ACEOF | |
9771 /* end confdefs.h. */ | 7250 /* end confdefs.h. */ |
9772 #include <X11/Xlib.h> | 7251 #include <X11/Xlib.h> |
9773 int | 7252 int |
9774 main () | 7253 main () |
9775 { | 7254 { |
9776 XrmInitialize () | 7255 XrmInitialize () |
9777 ; | 7256 ; |
9778 return 0; | 7257 return 0; |
9779 } | 7258 } |
9780 _ACEOF | 7259 _ACEOF |
9781 rm -f conftest.$ac_objext conftest$ac_exeext | 7260 if ac_fn_c_try_link "$LINENO"; then : |
9782 if { (ac_try="$ac_link" | |
9783 case "(($ac_try" in | |
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9785 *) ac_try_echo=$ac_try;; | |
9786 esac | |
9787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9788 $as_echo "$ac_try_echo") >&5 | |
9789 (eval "$ac_link") 2>conftest.er1 | |
9790 ac_status=$? | |
9791 grep -v '^ *+' conftest.er1 >conftest.err | |
9792 rm -f conftest.er1 | |
9793 cat conftest.err >&5 | |
9794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9795 (exit $ac_status); } && { | |
9796 test -z "$ac_c_werror_flag" || | |
9797 test ! -s conftest.err | |
9798 } && test -s conftest$ac_exeext && { | |
9799 test "$cross_compiling" = yes || | |
9800 $as_test_x conftest$ac_exeext | |
9801 }; then | |
9802 LIBS=$ac_save_LIBS | 7261 LIBS=$ac_save_LIBS |
9803 # We can link X programs with no special library path. | 7262 # We can link X programs with no special library path. |
9804 ac_x_libraries= | 7263 ac_x_libraries= |
9805 else | 7264 else |
9806 $as_echo "$as_me: failed program was:" >&5 | 7265 LIBS=$ac_save_LIBS |
9807 sed 's/^/| /' conftest.$ac_ext >&5 | |
9808 | |
9809 LIBS=$ac_save_LIBS | |
9810 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | 7266 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
9811 do | 7267 do |
9812 # Don't even attempt the hair of trying to link an X program! | 7268 # Don't even attempt the hair of trying to link an X program! |
9813 for ac_extension in a so sl dylib la dll; do | 7269 for ac_extension in a so sl dylib la dll; do |
9814 if test -r "$ac_dir/libX11.$ac_extension"; then | 7270 if test -r "$ac_dir/libX11.$ac_extension"; then |
9816 break 2 | 7272 break 2 |
9817 fi | 7273 fi |
9818 done | 7274 done |
9819 done | 7275 done |
9820 fi | 7276 fi |
9821 | 7277 rm -f core conftest.err conftest.$ac_objext \ |
9822 rm -rf conftest.dSYM | 7278 conftest$ac_exeext conftest.$ac_ext |
9823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9824 conftest$ac_exeext conftest.$ac_ext | |
9825 fi # $ac_x_libraries = no | 7279 fi # $ac_x_libraries = no |
9826 | 7280 |
9827 case $ac_x_includes,$ac_x_libraries in #( | 7281 case $ac_x_includes,$ac_x_libraries in #( |
9828 no,* | *,no | *\'*) | 7282 no,* | *,no | *\'*) |
9829 # Didn't find X, or a directory has "'" in its name. | 7283 # Didn't find X, or a directory has "'" in its name. |
9840 esac | 7294 esac |
9841 eval "$ac_cv_have_x" | 7295 eval "$ac_cv_have_x" |
9842 fi # $with_x != no | 7296 fi # $with_x != no |
9843 | 7297 |
9844 if test "$have_x" != yes; then | 7298 if test "$have_x" != yes; then |
9845 { $as_echo "$as_me:$LINENO: result: $have_x" >&5 | 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
9846 $as_echo "$have_x" >&6; } | 7300 $as_echo "$have_x" >&6; } |
9847 no_x=yes | 7301 no_x=yes |
9848 else | 7302 else |
9849 # If each of the values was on the command line, it overrides each guess. | 7303 # If each of the values was on the command line, it overrides each guess. |
9850 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | 7304 test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
9851 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | 7305 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
9852 # Update the cache value to reflect the command line values. | 7306 # Update the cache value to reflect the command line values. |
9853 ac_cv_have_x="have_x=yes\ | 7307 ac_cv_have_x="have_x=yes\ |
9854 ac_x_includes='$x_includes'\ | 7308 ac_x_includes='$x_includes'\ |
9855 ac_x_libraries='$x_libraries'" | 7309 ac_x_libraries='$x_libraries'" |
9856 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
9857 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | 7311 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
9858 fi | 7312 fi |
9859 | 7313 |
9860 if test "$no_x" = yes; then | 7314 if test "$no_x" = yes; then |
9861 window_system=none | 7315 window_system=none |
9961 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}" | 7415 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}" |
9962 LIB_STANDARD= | 7416 LIB_STANDARD= |
9963 START_FILES= | 7417 START_FILES= |
9964 TEMACS_LDFLAGS2= | 7418 TEMACS_LDFLAGS2= |
9965 fi | 7419 fi |
9966 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then | 7420 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" |
9967 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5 | 7421 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : |
9968 $as_echo_n "checking for AppKit/AppKit.h... " >&6; } | |
9969 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then | |
9970 $as_echo_n "(cached) " >&6 | |
9971 fi | |
9972 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5 | |
9973 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; } | |
9974 else | |
9975 # Is the header compilable? | |
9976 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5 | |
9977 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; } | |
9978 cat >conftest.$ac_ext <<_ACEOF | |
9979 /* confdefs.h. */ | |
9980 _ACEOF | |
9981 cat confdefs.h >>conftest.$ac_ext | |
9982 cat >>conftest.$ac_ext <<_ACEOF | |
9983 /* end confdefs.h. */ | |
9984 $ac_includes_default | |
9985 #include <AppKit/AppKit.h> | |
9986 _ACEOF | |
9987 rm -f conftest.$ac_objext | |
9988 if { (ac_try="$ac_compile" | |
9989 case "(($ac_try" in | |
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9991 *) ac_try_echo=$ac_try;; | |
9992 esac | |
9993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9994 $as_echo "$ac_try_echo") >&5 | |
9995 (eval "$ac_compile") 2>conftest.er1 | |
9996 ac_status=$? | |
9997 grep -v '^ *+' conftest.er1 >conftest.err | |
9998 rm -f conftest.er1 | |
9999 cat conftest.err >&5 | |
10000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10001 (exit $ac_status); } && { | |
10002 test -z "$ac_c_werror_flag" || | |
10003 test ! -s conftest.err | |
10004 } && test -s conftest.$ac_objext; then | |
10005 ac_header_compiler=yes | |
10006 else | |
10007 $as_echo "$as_me: failed program was:" >&5 | |
10008 sed 's/^/| /' conftest.$ac_ext >&5 | |
10009 | |
10010 ac_header_compiler=no | |
10011 fi | |
10012 | |
10013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10014 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10015 $as_echo "$ac_header_compiler" >&6; } | |
10016 | |
10017 # Is the header present? | |
10018 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5 | |
10019 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; } | |
10020 cat >conftest.$ac_ext <<_ACEOF | |
10021 /* confdefs.h. */ | |
10022 _ACEOF | |
10023 cat confdefs.h >>conftest.$ac_ext | |
10024 cat >>conftest.$ac_ext <<_ACEOF | |
10025 /* end confdefs.h. */ | |
10026 #include <AppKit/AppKit.h> | |
10027 _ACEOF | |
10028 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10029 case "(($ac_try" in | |
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10031 *) ac_try_echo=$ac_try;; | |
10032 esac | |
10033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10034 $as_echo "$ac_try_echo") >&5 | |
10035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10036 ac_status=$? | |
10037 grep -v '^ *+' conftest.er1 >conftest.err | |
10038 rm -f conftest.er1 | |
10039 cat conftest.err >&5 | |
10040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10041 (exit $ac_status); } >/dev/null && { | |
10042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10043 test ! -s conftest.err | |
10044 }; then | |
10045 ac_header_preproc=yes | |
10046 else | |
10047 $as_echo "$as_me: failed program was:" >&5 | |
10048 sed 's/^/| /' conftest.$ac_ext >&5 | |
10049 | |
10050 ac_header_preproc=no | |
10051 fi | |
10052 | |
10053 rm -f conftest.err conftest.$ac_ext | |
10054 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10055 $as_echo "$ac_header_preproc" >&6; } | |
10056 | |
10057 # So? What about this header? | |
10058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10059 yes:no: ) | |
10060 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10061 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10062 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5 | |
10063 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;} | |
10064 ac_header_preproc=yes | |
10065 ;; | |
10066 no:yes:* ) | |
10067 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5 | |
10068 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;} | |
10069 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5 | |
10070 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;} | |
10071 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5 | |
10072 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;} | |
10073 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5 | |
10074 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
10075 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5 | |
10076 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;} | |
10077 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5 | |
10078 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;} | |
10079 | |
10080 ;; | |
10081 esac | |
10082 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5 | |
10083 $as_echo_n "checking for AppKit/AppKit.h... " >&6; } | |
10084 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then | |
10085 $as_echo_n "(cached) " >&6 | |
10086 else | |
10087 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc | |
10088 fi | |
10089 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5 | |
10090 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; } | |
10091 | |
10092 fi | |
10093 if test $ac_cv_header_AppKit_AppKit_h = yes; then | |
10094 HAVE_NS=yes | 7422 HAVE_NS=yes |
10095 else | 7423 else |
10096 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include | 7424 as_fn_error "\`--with-ns' was specified, but the include |
10097 files are missing or cannot be compiled." >&5 | 7425 files are missing or cannot be compiled." "$LINENO" 5 |
10098 $as_echo "$as_me: error: \`--with-ns' was specified, but the include | |
10099 files are missing or cannot be compiled." >&2;} | |
10100 { (exit 1); exit 1; }; } | |
10101 fi | 7426 fi |
10102 | 7427 |
10103 | 7428 |
10104 NS_HAVE_NSINTEGER=yes | 7429 NS_HAVE_NSINTEGER=yes |
10105 cat >conftest.$ac_ext <<_ACEOF | 7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10106 /* confdefs.h. */ | |
10107 _ACEOF | |
10108 cat confdefs.h >>conftest.$ac_ext | |
10109 cat >>conftest.$ac_ext <<_ACEOF | |
10110 /* end confdefs.h. */ | 7431 /* end confdefs.h. */ |
10111 #include <Foundation/NSObjCRuntime.h> | 7432 #include <Foundation/NSObjCRuntime.h> |
10112 int | 7433 int |
10113 main () | 7434 main () |
10114 { | 7435 { |
10115 NSInteger i; | 7436 NSInteger i; |
10116 ; | 7437 ; |
10117 return 0; | 7438 return 0; |
10118 } | 7439 } |
10119 _ACEOF | 7440 _ACEOF |
10120 rm -f conftest.$ac_objext | 7441 if ac_fn_c_try_compile "$LINENO"; then : |
10121 if { (ac_try="$ac_compile" | |
10122 case "(($ac_try" in | |
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10124 *) ac_try_echo=$ac_try;; | |
10125 esac | |
10126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10127 $as_echo "$ac_try_echo") >&5 | |
10128 (eval "$ac_compile") 2>conftest.er1 | |
10129 ac_status=$? | |
10130 grep -v '^ *+' conftest.er1 >conftest.err | |
10131 rm -f conftest.er1 | |
10132 cat conftest.err >&5 | |
10133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10134 (exit $ac_status); } && { | |
10135 test -z "$ac_c_werror_flag" || | |
10136 test ! -s conftest.err | |
10137 } && test -s conftest.$ac_objext; then | |
10138 ns_have_nsinteger=yes | 7442 ns_have_nsinteger=yes |
10139 else | 7443 else |
10140 $as_echo "$as_me: failed program was:" >&5 | 7444 ns_have_nsinteger=no |
10141 sed 's/^/| /' conftest.$ac_ext >&5 | 7445 fi |
10142 | |
10143 ns_have_nsinteger=no | |
10144 fi | |
10145 | |
10146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 7446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10147 if test $ns_have_nsinteger = no; then | 7447 if test $ns_have_nsinteger = no; then |
10148 NS_HAVE_NSINTEGER=no | 7448 NS_HAVE_NSINTEGER=no |
10149 fi | 7449 fi |
10150 fi | 7450 fi |
10194 esac | 7494 esac |
10195 | 7495 |
10196 if test "$window_system" = none && test "X$with_x" != "Xno"; then | 7496 if test "$window_system" = none && test "X$with_x" != "Xno"; then |
10197 # Extract the first word of "X", so it can be a program name with args. | 7497 # Extract the first word of "X", so it can be a program name with args. |
10198 set dummy X; ac_word=$2 | 7498 set dummy X; ac_word=$2 |
10199 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10200 $as_echo_n "checking for $ac_word... " >&6; } | 7500 $as_echo_n "checking for $ac_word... " >&6; } |
10201 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then | 7501 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then : |
10202 $as_echo_n "(cached) " >&6 | 7502 $as_echo_n "(cached) " >&6 |
10203 else | 7503 else |
10204 if test -n "$HAVE_XSERVER"; then | 7504 if test -n "$HAVE_XSERVER"; then |
10205 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. | 7505 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. |
10206 else | 7506 else |
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10208 for as_dir in $PATH | 7508 for as_dir in $PATH |
10209 do | 7509 do |
10210 IFS=$as_save_IFS | 7510 IFS=$as_save_IFS |
10211 test -z "$as_dir" && as_dir=. | 7511 test -z "$as_dir" && as_dir=. |
10212 for ac_exec_ext in '' $ac_executable_extensions; do | 7512 for ac_exec_ext in '' $ac_executable_extensions; do |
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
10214 ac_cv_prog_HAVE_XSERVER="true" | 7514 ac_cv_prog_HAVE_XSERVER="true" |
10215 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 7515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10216 break 2 | 7516 break 2 |
10217 fi | 7517 fi |
10218 done | 7518 done |
10219 done | 7519 done |
10220 IFS=$as_save_IFS | 7520 IFS=$as_save_IFS |
10221 | 7521 |
10222 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" | 7522 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" |
10223 fi | 7523 fi |
10224 fi | 7524 fi |
10225 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER | 7525 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER |
10226 if test -n "$HAVE_XSERVER"; then | 7526 if test -n "$HAVE_XSERVER"; then |
10227 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5 | 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5 |
10228 $as_echo "$HAVE_XSERVER" >&6; } | 7528 $as_echo "$HAVE_XSERVER" >&6; } |
10229 else | 7529 else |
10230 { $as_echo "$as_me:$LINENO: result: no" >&5 | 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10231 $as_echo "no" >&6; } | 7531 $as_echo "no" >&6; } |
10232 fi | 7532 fi |
10233 | 7533 |
10234 | 7534 |
10235 if test "$HAVE_XSERVER" = true || | 7535 if test "$HAVE_XSERVER" = true || |
10236 test -n "$DISPLAY" || | 7536 test -n "$DISPLAY" || |
10237 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then | 7537 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then |
10238 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries | 7538 as_fn_error "You seem to be running X, but no X development libraries |
10239 were found. You should install the relevant development files for X | 7539 were found. You should install the relevant development files for X |
10240 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | 7540 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make |
10241 sure you have development files for image handling, i.e. | 7541 sure you have development files for image handling, i.e. |
10242 tiff, gif, jpeg, png and xpm. | 7542 tiff, gif, jpeg, png and xpm. |
10243 If you are sure you want Emacs compiled without X window support, pass | 7543 If you are sure you want Emacs compiled without X window support, pass |
10244 --without-x | 7544 --without-x |
10245 to configure." >&5 | 7545 to configure." "$LINENO" 5 |
10246 $as_echo "$as_me: error: You seem to be running X, but no X development libraries | |
10247 were found. You should install the relevant development files for X | |
10248 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | |
10249 sure you have development files for image handling, i.e. | |
10250 tiff, gif, jpeg, png and xpm. | |
10251 If you are sure you want Emacs compiled without X window support, pass | |
10252 --without-x | |
10253 to configure." >&2;} | |
10254 { (exit 1); exit 1; }; } | |
10255 fi | 7546 fi |
10256 fi | 7547 fi |
10257 | 7548 |
10258 ### If we're using X11, we should use the X menu package. | 7549 ### If we're using X11, we should use the X menu package. |
10259 HAVE_MENUS=no | 7550 HAVE_MENUS=no |
10263 | 7554 |
10264 # Do the opsystem or machine files prohibit the use of the GNU malloc? | 7555 # Do the opsystem or machine files prohibit the use of the GNU malloc? |
10265 # Assume not, until told otherwise. | 7556 # Assume not, until told otherwise. |
10266 GNU_MALLOC=yes | 7557 GNU_MALLOC=yes |
10267 doug_lea_malloc=yes | 7558 doug_lea_malloc=yes |
10268 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5 | 7559 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state" |
10269 $as_echo_n "checking for malloc_get_state... " >&6; } | 7560 if test "x$ac_cv_func_malloc_get_state" = x""yes; then : |
10270 if test "${ac_cv_func_malloc_get_state+set}" = set; then | 7561 |
7562 else | |
7563 doug_lea_malloc=no | |
7564 fi | |
7565 | |
7566 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state" | |
7567 if test "x$ac_cv_func_malloc_set_state" = x""yes; then : | |
7568 | |
7569 else | |
7570 doug_lea_malloc=no | |
7571 fi | |
7572 | |
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5 | |
7574 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; } | |
7575 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then : | |
10271 $as_echo_n "(cached) " >&6 | 7576 $as_echo_n "(cached) " >&6 |
10272 else | 7577 else |
10273 cat >conftest.$ac_ext <<_ACEOF | 7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10274 /* confdefs.h. */ | |
10275 _ACEOF | |
10276 cat confdefs.h >>conftest.$ac_ext | |
10277 cat >>conftest.$ac_ext <<_ACEOF | |
10278 /* end confdefs.h. */ | |
10279 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state. | |
10280 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10281 #define malloc_get_state innocuous_malloc_get_state | |
10282 | |
10283 /* System header to define __stub macros and hopefully few prototypes, | |
10284 which can conflict with char malloc_get_state (); below. | |
10285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10286 <limits.h> exists even on freestanding compilers. */ | |
10287 | |
10288 #ifdef __STDC__ | |
10289 # include <limits.h> | |
10290 #else | |
10291 # include <assert.h> | |
10292 #endif | |
10293 | |
10294 #undef malloc_get_state | |
10295 | |
10296 /* Override any GCC internal prototype to avoid an error. | |
10297 Use char because int might match the return type of a GCC | |
10298 builtin and then its argument prototype would still apply. */ | |
10299 #ifdef __cplusplus | |
10300 extern "C" | |
10301 #endif | |
10302 char malloc_get_state (); | |
10303 /* The GNU C library defines this for functions which it implements | |
10304 to always fail with ENOSYS. Some functions are actually named | |
10305 something starting with __ and the normal name is an alias. */ | |
10306 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state | |
10307 choke me | |
10308 #endif | |
10309 | |
10310 int | |
10311 main () | |
10312 { | |
10313 return malloc_get_state (); | |
10314 ; | |
10315 return 0; | |
10316 } | |
10317 _ACEOF | |
10318 rm -f conftest.$ac_objext conftest$ac_exeext | |
10319 if { (ac_try="$ac_link" | |
10320 case "(($ac_try" in | |
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10322 *) ac_try_echo=$ac_try;; | |
10323 esac | |
10324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10325 $as_echo "$ac_try_echo") >&5 | |
10326 (eval "$ac_link") 2>conftest.er1 | |
10327 ac_status=$? | |
10328 grep -v '^ *+' conftest.er1 >conftest.err | |
10329 rm -f conftest.er1 | |
10330 cat conftest.err >&5 | |
10331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10332 (exit $ac_status); } && { | |
10333 test -z "$ac_c_werror_flag" || | |
10334 test ! -s conftest.err | |
10335 } && test -s conftest$ac_exeext && { | |
10336 test "$cross_compiling" = yes || | |
10337 $as_test_x conftest$ac_exeext | |
10338 }; then | |
10339 ac_cv_func_malloc_get_state=yes | |
10340 else | |
10341 $as_echo "$as_me: failed program was:" >&5 | |
10342 sed 's/^/| /' conftest.$ac_ext >&5 | |
10343 | |
10344 ac_cv_func_malloc_get_state=no | |
10345 fi | |
10346 | |
10347 rm -rf conftest.dSYM | |
10348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10349 conftest$ac_exeext conftest.$ac_ext | |
10350 fi | |
10351 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 | |
10352 $as_echo "$ac_cv_func_malloc_get_state" >&6; } | |
10353 if test $ac_cv_func_malloc_get_state = yes; then | |
10354 : | |
10355 else | |
10356 doug_lea_malloc=no | |
10357 fi | |
10358 | |
10359 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5 | |
10360 $as_echo_n "checking for malloc_set_state... " >&6; } | |
10361 if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
10362 $as_echo_n "(cached) " >&6 | |
10363 else | |
10364 cat >conftest.$ac_ext <<_ACEOF | |
10365 /* confdefs.h. */ | |
10366 _ACEOF | |
10367 cat confdefs.h >>conftest.$ac_ext | |
10368 cat >>conftest.$ac_ext <<_ACEOF | |
10369 /* end confdefs.h. */ | |
10370 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state. | |
10371 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10372 #define malloc_set_state innocuous_malloc_set_state | |
10373 | |
10374 /* System header to define __stub macros and hopefully few prototypes, | |
10375 which can conflict with char malloc_set_state (); below. | |
10376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10377 <limits.h> exists even on freestanding compilers. */ | |
10378 | |
10379 #ifdef __STDC__ | |
10380 # include <limits.h> | |
10381 #else | |
10382 # include <assert.h> | |
10383 #endif | |
10384 | |
10385 #undef malloc_set_state | |
10386 | |
10387 /* Override any GCC internal prototype to avoid an error. | |
10388 Use char because int might match the return type of a GCC | |
10389 builtin and then its argument prototype would still apply. */ | |
10390 #ifdef __cplusplus | |
10391 extern "C" | |
10392 #endif | |
10393 char malloc_set_state (); | |
10394 /* The GNU C library defines this for functions which it implements | |
10395 to always fail with ENOSYS. Some functions are actually named | |
10396 something starting with __ and the normal name is an alias. */ | |
10397 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state | |
10398 choke me | |
10399 #endif | |
10400 | |
10401 int | |
10402 main () | |
10403 { | |
10404 return malloc_set_state (); | |
10405 ; | |
10406 return 0; | |
10407 } | |
10408 _ACEOF | |
10409 rm -f conftest.$ac_objext conftest$ac_exeext | |
10410 if { (ac_try="$ac_link" | |
10411 case "(($ac_try" in | |
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10413 *) ac_try_echo=$ac_try;; | |
10414 esac | |
10415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10416 $as_echo "$ac_try_echo") >&5 | |
10417 (eval "$ac_link") 2>conftest.er1 | |
10418 ac_status=$? | |
10419 grep -v '^ *+' conftest.er1 >conftest.err | |
10420 rm -f conftest.er1 | |
10421 cat conftest.err >&5 | |
10422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10423 (exit $ac_status); } && { | |
10424 test -z "$ac_c_werror_flag" || | |
10425 test ! -s conftest.err | |
10426 } && test -s conftest$ac_exeext && { | |
10427 test "$cross_compiling" = yes || | |
10428 $as_test_x conftest$ac_exeext | |
10429 }; then | |
10430 ac_cv_func_malloc_set_state=yes | |
10431 else | |
10432 $as_echo "$as_me: failed program was:" >&5 | |
10433 sed 's/^/| /' conftest.$ac_ext >&5 | |
10434 | |
10435 ac_cv_func_malloc_set_state=no | |
10436 fi | |
10437 | |
10438 rm -rf conftest.dSYM | |
10439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10440 conftest$ac_exeext conftest.$ac_ext | |
10441 fi | |
10442 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 | |
10443 $as_echo "$ac_cv_func_malloc_set_state" >&6; } | |
10444 if test $ac_cv_func_malloc_set_state = yes; then | |
10445 : | |
10446 else | |
10447 doug_lea_malloc=no | |
10448 fi | |
10449 | |
10450 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 | |
10451 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; } | |
10452 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
10453 $as_echo_n "(cached) " >&6 | |
10454 else | |
10455 cat >conftest.$ac_ext <<_ACEOF | |
10456 /* confdefs.h. */ | |
10457 _ACEOF | |
10458 cat confdefs.h >>conftest.$ac_ext | |
10459 cat >>conftest.$ac_ext <<_ACEOF | |
10460 /* end confdefs.h. */ | 7579 /* end confdefs.h. */ |
10461 extern void (* __after_morecore_hook)(); | 7580 extern void (* __after_morecore_hook)(); |
10462 int | 7581 int |
10463 main () | 7582 main () |
10464 { | 7583 { |
10465 __after_morecore_hook = 0 | 7584 __after_morecore_hook = 0 |
10466 ; | 7585 ; |
10467 return 0; | 7586 return 0; |
10468 } | 7587 } |
10469 _ACEOF | 7588 _ACEOF |
10470 rm -f conftest.$ac_objext conftest$ac_exeext | 7589 if ac_fn_c_try_link "$LINENO"; then : |
10471 if { (ac_try="$ac_link" | |
10472 case "(($ac_try" in | |
10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10474 *) ac_try_echo=$ac_try;; | |
10475 esac | |
10476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10477 $as_echo "$ac_try_echo") >&5 | |
10478 (eval "$ac_link") 2>conftest.er1 | |
10479 ac_status=$? | |
10480 grep -v '^ *+' conftest.er1 >conftest.err | |
10481 rm -f conftest.er1 | |
10482 cat conftest.err >&5 | |
10483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10484 (exit $ac_status); } && { | |
10485 test -z "$ac_c_werror_flag" || | |
10486 test ! -s conftest.err | |
10487 } && test -s conftest$ac_exeext && { | |
10488 test "$cross_compiling" = yes || | |
10489 $as_test_x conftest$ac_exeext | |
10490 }; then | |
10491 emacs_cv_var___after_morecore_hook=yes | 7590 emacs_cv_var___after_morecore_hook=yes |
10492 else | 7591 else |
10493 $as_echo "$as_me: failed program was:" >&5 | 7592 emacs_cv_var___after_morecore_hook=no |
10494 sed 's/^/| /' conftest.$ac_ext >&5 | 7593 fi |
10495 | 7594 rm -f core conftest.err conftest.$ac_objext \ |
10496 emacs_cv_var___after_morecore_hook=no | 7595 conftest$ac_exeext conftest.$ac_ext |
10497 fi | 7596 fi |
10498 | 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5 |
10499 rm -rf conftest.dSYM | |
10500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10501 conftest$ac_exeext conftest.$ac_ext | |
10502 fi | |
10503 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 | |
10504 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; } | 7598 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; } |
10505 if test $emacs_cv_var___after_morecore_hook = no; then | 7599 if test $emacs_cv_var___after_morecore_hook = no; then |
10506 doug_lea_malloc=no | 7600 doug_lea_malloc=no |
10507 fi | 7601 fi |
10508 | 7602 |
10523 if test "$GNU_MALLOC" = yes ; then | 7617 if test "$GNU_MALLOC" = yes ; then |
10524 GNU_MALLOC_reason=" | 7618 GNU_MALLOC_reason=" |
10525 (Using Doug Lea's new malloc from the GNU C Library.)" | 7619 (Using Doug Lea's new malloc from the GNU C Library.)" |
10526 fi | 7620 fi |
10527 | 7621 |
10528 cat >>confdefs.h <<\_ACEOF | 7622 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h |
10529 #define DOUG_LEA_MALLOC 1 | |
10530 _ACEOF | |
10531 | 7623 |
10532 | 7624 |
10533 ## Use mmap directly for allocating larger buffers. | 7625 ## Use mmap directly for allocating larger buffers. |
10534 ## FIXME this comes from src/s/{gnu,gnu-linux}.h: | 7626 ## FIXME this comes from src/s/{gnu,gnu-linux}.h: |
10535 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif | 7627 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif |
10544 fi | 7636 fi |
10545 | 7637 |
10546 | 7638 |
10547 | 7639 |
10548 | 7640 |
10549 for ac_header in stdlib.h unistd.h | 7641 |
10550 do | 7642 for ac_header in $ac_header_list |
10551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 7643 do : |
10552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 7644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10553 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | 7645 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
10554 $as_echo_n "checking for $ac_header... " >&6; } | 7646 " |
10555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 7647 eval as_val=\$$as_ac_Header |
10556 $as_echo_n "(cached) " >&6 | 7648 if test "x$as_val" = x""yes; then : |
10557 fi | |
10558 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10559 $as_echo "$as_val"'` | |
10560 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10561 $as_echo "$ac_res" >&6; } | |
10562 else | |
10563 # Is the header compilable? | |
10564 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10565 $as_echo_n "checking $ac_header usability... " >&6; } | |
10566 cat >conftest.$ac_ext <<_ACEOF | |
10567 /* confdefs.h. */ | |
10568 _ACEOF | |
10569 cat confdefs.h >>conftest.$ac_ext | |
10570 cat >>conftest.$ac_ext <<_ACEOF | |
10571 /* end confdefs.h. */ | |
10572 $ac_includes_default | |
10573 #include <$ac_header> | |
10574 _ACEOF | |
10575 rm -f conftest.$ac_objext | |
10576 if { (ac_try="$ac_compile" | |
10577 case "(($ac_try" in | |
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10579 *) ac_try_echo=$ac_try;; | |
10580 esac | |
10581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10582 $as_echo "$ac_try_echo") >&5 | |
10583 (eval "$ac_compile") 2>conftest.er1 | |
10584 ac_status=$? | |
10585 grep -v '^ *+' conftest.er1 >conftest.err | |
10586 rm -f conftest.er1 | |
10587 cat conftest.err >&5 | |
10588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10589 (exit $ac_status); } && { | |
10590 test -z "$ac_c_werror_flag" || | |
10591 test ! -s conftest.err | |
10592 } && test -s conftest.$ac_objext; then | |
10593 ac_header_compiler=yes | |
10594 else | |
10595 $as_echo "$as_me: failed program was:" >&5 | |
10596 sed 's/^/| /' conftest.$ac_ext >&5 | |
10597 | |
10598 ac_header_compiler=no | |
10599 fi | |
10600 | |
10601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10602 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10603 $as_echo "$ac_header_compiler" >&6; } | |
10604 | |
10605 # Is the header present? | |
10606 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10607 $as_echo_n "checking $ac_header presence... " >&6; } | |
10608 cat >conftest.$ac_ext <<_ACEOF | |
10609 /* confdefs.h. */ | |
10610 _ACEOF | |
10611 cat confdefs.h >>conftest.$ac_ext | |
10612 cat >>conftest.$ac_ext <<_ACEOF | |
10613 /* end confdefs.h. */ | |
10614 #include <$ac_header> | |
10615 _ACEOF | |
10616 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10617 case "(($ac_try" in | |
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10619 *) ac_try_echo=$ac_try;; | |
10620 esac | |
10621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10622 $as_echo "$ac_try_echo") >&5 | |
10623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10624 ac_status=$? | |
10625 grep -v '^ *+' conftest.er1 >conftest.err | |
10626 rm -f conftest.er1 | |
10627 cat conftest.err >&5 | |
10628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10629 (exit $ac_status); } >/dev/null && { | |
10630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10631 test ! -s conftest.err | |
10632 }; then | |
10633 ac_header_preproc=yes | |
10634 else | |
10635 $as_echo "$as_me: failed program was:" >&5 | |
10636 sed 's/^/| /' conftest.$ac_ext >&5 | |
10637 | |
10638 ac_header_preproc=no | |
10639 fi | |
10640 | |
10641 rm -f conftest.err conftest.$ac_ext | |
10642 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10643 $as_echo "$ac_header_preproc" >&6; } | |
10644 | |
10645 # So? What about this header? | |
10646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10647 yes:no: ) | |
10648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10649 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10651 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10652 ac_header_preproc=yes | |
10653 ;; | |
10654 no:yes:* ) | |
10655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10656 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10658 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10660 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10662 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10666 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10667 | |
10668 ;; | |
10669 esac | |
10670 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10671 $as_echo_n "checking for $ac_header... " >&6; } | |
10672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10673 $as_echo_n "(cached) " >&6 | |
10674 else | |
10675 eval "$as_ac_Header=\$ac_header_preproc" | |
10676 fi | |
10677 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10678 $as_echo "$as_val"'` | |
10679 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10680 $as_echo "$ac_res" >&6; } | |
10681 | |
10682 fi | |
10683 if test `eval 'as_val=${'$as_ac_Header'} | |
10684 $as_echo "$as_val"'` = yes; then | |
10685 cat >>confdefs.h <<_ACEOF | 7649 cat >>confdefs.h <<_ACEOF |
10686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 7650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10687 _ACEOF | 7651 _ACEOF |
10688 | 7652 |
10689 fi | 7653 fi |
10690 | 7654 |
10691 done | 7655 done |
10692 | 7656 |
10693 | 7657 |
7658 | |
7659 | |
7660 | |
7661 | |
7662 | |
7663 | |
10694 for ac_func in getpagesize | 7664 for ac_func in getpagesize |
10695 do | 7665 do : |
10696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 7666 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
10697 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 7667 if test "x$ac_cv_func_getpagesize" = x""yes; then : |
10698 $as_echo_n "checking for $ac_func... " >&6; } | 7668 cat >>confdefs.h <<_ACEOF |
10699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 7669 #define HAVE_GETPAGESIZE 1 |
7670 _ACEOF | |
7671 | |
7672 fi | |
7673 done | |
7674 | |
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
7676 $as_echo_n "checking for working mmap... " >&6; } | |
7677 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
10700 $as_echo_n "(cached) " >&6 | 7678 $as_echo_n "(cached) " >&6 |
10701 else | 7679 else |
10702 cat >conftest.$ac_ext <<_ACEOF | 7680 if test "$cross_compiling" = yes; then : |
10703 /* confdefs.h. */ | |
10704 _ACEOF | |
10705 cat confdefs.h >>conftest.$ac_ext | |
10706 cat >>conftest.$ac_ext <<_ACEOF | |
10707 /* end confdefs.h. */ | |
10708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10709 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10710 #define $ac_func innocuous_$ac_func | |
10711 | |
10712 /* System header to define __stub macros and hopefully few prototypes, | |
10713 which can conflict with char $ac_func (); below. | |
10714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10715 <limits.h> exists even on freestanding compilers. */ | |
10716 | |
10717 #ifdef __STDC__ | |
10718 # include <limits.h> | |
10719 #else | |
10720 # include <assert.h> | |
10721 #endif | |
10722 | |
10723 #undef $ac_func | |
10724 | |
10725 /* Override any GCC internal prototype to avoid an error. | |
10726 Use char because int might match the return type of a GCC | |
10727 builtin and then its argument prototype would still apply. */ | |
10728 #ifdef __cplusplus | |
10729 extern "C" | |
10730 #endif | |
10731 char $ac_func (); | |
10732 /* The GNU C library defines this for functions which it implements | |
10733 to always fail with ENOSYS. Some functions are actually named | |
10734 something starting with __ and the normal name is an alias. */ | |
10735 #if defined __stub_$ac_func || defined __stub___$ac_func | |
10736 choke me | |
10737 #endif | |
10738 | |
10739 int | |
10740 main () | |
10741 { | |
10742 return $ac_func (); | |
10743 ; | |
10744 return 0; | |
10745 } | |
10746 _ACEOF | |
10747 rm -f conftest.$ac_objext conftest$ac_exeext | |
10748 if { (ac_try="$ac_link" | |
10749 case "(($ac_try" in | |
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10751 *) ac_try_echo=$ac_try;; | |
10752 esac | |
10753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10754 $as_echo "$ac_try_echo") >&5 | |
10755 (eval "$ac_link") 2>conftest.er1 | |
10756 ac_status=$? | |
10757 grep -v '^ *+' conftest.er1 >conftest.err | |
10758 rm -f conftest.er1 | |
10759 cat conftest.err >&5 | |
10760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10761 (exit $ac_status); } && { | |
10762 test -z "$ac_c_werror_flag" || | |
10763 test ! -s conftest.err | |
10764 } && test -s conftest$ac_exeext && { | |
10765 test "$cross_compiling" = yes || | |
10766 $as_test_x conftest$ac_exeext | |
10767 }; then | |
10768 eval "$as_ac_var=yes" | |
10769 else | |
10770 $as_echo "$as_me: failed program was:" >&5 | |
10771 sed 's/^/| /' conftest.$ac_ext >&5 | |
10772 | |
10773 eval "$as_ac_var=no" | |
10774 fi | |
10775 | |
10776 rm -rf conftest.dSYM | |
10777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10778 conftest$ac_exeext conftest.$ac_ext | |
10779 fi | |
10780 ac_res=`eval 'as_val=${'$as_ac_var'} | |
10781 $as_echo "$as_val"'` | |
10782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10783 $as_echo "$ac_res" >&6; } | |
10784 if test `eval 'as_val=${'$as_ac_var'} | |
10785 $as_echo "$as_val"'` = yes; then | |
10786 cat >>confdefs.h <<_ACEOF | |
10787 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10788 _ACEOF | |
10789 | |
10790 fi | |
10791 done | |
10792 | |
10793 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 | |
10794 $as_echo_n "checking for working mmap... " >&6; } | |
10795 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
10796 $as_echo_n "(cached) " >&6 | |
10797 else | |
10798 if test "$cross_compiling" = yes; then | |
10799 ac_cv_func_mmap_fixed_mapped=no | 7681 ac_cv_func_mmap_fixed_mapped=no |
10800 else | 7682 else |
10801 cat >conftest.$ac_ext <<_ACEOF | 7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10802 /* confdefs.h. */ | |
10803 _ACEOF | |
10804 cat confdefs.h >>conftest.$ac_ext | |
10805 cat >>conftest.$ac_ext <<_ACEOF | |
10806 /* end confdefs.h. */ | 7684 /* end confdefs.h. */ |
10807 $ac_includes_default | 7685 $ac_includes_default |
10808 /* malloc might have been renamed as rpl_malloc. */ | 7686 /* malloc might have been renamed as rpl_malloc. */ |
10809 #undef malloc | 7687 #undef malloc |
10810 | 7688 |
10837 char *malloc (); | 7715 char *malloc (); |
10838 #endif | 7716 #endif |
10839 | 7717 |
10840 /* This mess was copied from the GNU getpagesize.h. */ | 7718 /* This mess was copied from the GNU getpagesize.h. */ |
10841 #ifndef HAVE_GETPAGESIZE | 7719 #ifndef HAVE_GETPAGESIZE |
10842 /* Assume that all systems that can run configure have sys/param.h. */ | |
10843 # ifndef HAVE_SYS_PARAM_H | |
10844 # define HAVE_SYS_PARAM_H 1 | |
10845 # endif | |
10846 | |
10847 # ifdef _SC_PAGESIZE | 7720 # ifdef _SC_PAGESIZE |
10848 # define getpagesize() sysconf(_SC_PAGESIZE) | 7721 # define getpagesize() sysconf(_SC_PAGESIZE) |
10849 # else /* no _SC_PAGESIZE */ | 7722 # else /* no _SC_PAGESIZE */ |
10850 # ifdef HAVE_SYS_PARAM_H | 7723 # ifdef HAVE_SYS_PARAM_H |
10851 # include <sys/param.h> | 7724 # include <sys/param.h> |
10877 int | 7750 int |
10878 main () | 7751 main () |
10879 { | 7752 { |
10880 char *data, *data2, *data3; | 7753 char *data, *data2, *data3; |
10881 int i, pagesize; | 7754 int i, pagesize; |
10882 int fd; | 7755 int fd, fd2; |
10883 | 7756 |
10884 pagesize = getpagesize (); | 7757 pagesize = getpagesize (); |
10885 | 7758 |
10886 /* First, make a file with some known garbage in it. */ | 7759 /* First, make a file with some known garbage in it. */ |
10887 data = (char *) malloc (pagesize); | 7760 data = (char *) malloc (pagesize); |
10890 for (i = 0; i < pagesize; ++i) | 7763 for (i = 0; i < pagesize; ++i) |
10891 *(data + i) = rand (); | 7764 *(data + i) = rand (); |
10892 umask (0); | 7765 umask (0); |
10893 fd = creat ("conftest.mmap", 0600); | 7766 fd = creat ("conftest.mmap", 0600); |
10894 if (fd < 0) | 7767 if (fd < 0) |
10895 return 1; | 7768 return 2; |
10896 if (write (fd, data, pagesize) != pagesize) | 7769 if (write (fd, data, pagesize) != pagesize) |
10897 return 1; | 7770 return 3; |
10898 close (fd); | 7771 close (fd); |
7772 | |
7773 /* Next, check that the tail of a page is zero-filled. File must have | |
7774 non-zero length, otherwise we risk SIGBUS for entire page. */ | |
7775 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
7776 if (fd2 < 0) | |
7777 return 4; | |
7778 data2 = ""; | |
7779 if (write (fd2, data2, 1) != 1) | |
7780 return 5; | |
7781 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
7782 if (data2 == MAP_FAILED) | |
7783 return 6; | |
7784 for (i = 0; i < pagesize; ++i) | |
7785 if (*(data2 + i)) | |
7786 return 7; | |
7787 close (fd2); | |
7788 if (munmap (data2, pagesize)) | |
7789 return 8; | |
10899 | 7790 |
10900 /* Next, try to mmap the file at a fixed address which already has | 7791 /* Next, try to mmap the file at a fixed address which already has |
10901 something else allocated at it. If we can, also make sure that | 7792 something else allocated at it. If we can, also make sure that |
10902 we see the same garbage. */ | 7793 we see the same garbage. */ |
10903 fd = open ("conftest.mmap", O_RDWR); | 7794 fd = open ("conftest.mmap", O_RDWR); |
10904 if (fd < 0) | 7795 if (fd < 0) |
10905 return 1; | 7796 return 9; |
10906 data2 = (char *) malloc (2 * pagesize); | |
10907 if (!data2) | |
10908 return 1; | |
10909 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
10910 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 7797 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
10911 MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 7798 MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
10912 return 1; | 7799 return 10; |
10913 for (i = 0; i < pagesize; ++i) | 7800 for (i = 0; i < pagesize; ++i) |
10914 if (*(data + i) != *(data2 + i)) | 7801 if (*(data + i) != *(data2 + i)) |
10915 return 1; | 7802 return 11; |
10916 | 7803 |
10917 /* Finally, make sure that changes to the mapped area do not | 7804 /* Finally, make sure that changes to the mapped area do not |
10918 percolate back to the file as seen by read(). (This is a bug on | 7805 percolate back to the file as seen by read(). (This is a bug on |
10919 some variants of i386 svr4.0.) */ | 7806 some variants of i386 svr4.0.) */ |
10920 for (i = 0; i < pagesize; ++i) | 7807 for (i = 0; i < pagesize; ++i) |
10921 *(data2 + i) = *(data2 + i) + 1; | 7808 *(data2 + i) = *(data2 + i) + 1; |
10922 data3 = (char *) malloc (pagesize); | 7809 data3 = (char *) malloc (pagesize); |
10923 if (!data3) | 7810 if (!data3) |
10924 return 1; | 7811 return 12; |
10925 if (read (fd, data3, pagesize) != pagesize) | 7812 if (read (fd, data3, pagesize) != pagesize) |
10926 return 1; | 7813 return 13; |
10927 for (i = 0; i < pagesize; ++i) | 7814 for (i = 0; i < pagesize; ++i) |
10928 if (*(data + i) != *(data3 + i)) | 7815 if (*(data + i) != *(data3 + i)) |
10929 return 1; | 7816 return 14; |
10930 close (fd); | 7817 close (fd); |
10931 return 0; | 7818 return 0; |
10932 } | 7819 } |
10933 _ACEOF | 7820 _ACEOF |
10934 rm -f conftest$ac_exeext | 7821 if ac_fn_c_try_run "$LINENO"; then : |
10935 if { (ac_try="$ac_link" | |
10936 case "(($ac_try" in | |
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10938 *) ac_try_echo=$ac_try;; | |
10939 esac | |
10940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10941 $as_echo "$ac_try_echo") >&5 | |
10942 (eval "$ac_link") 2>&5 | |
10943 ac_status=$? | |
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10946 { (case "(($ac_try" in | |
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10948 *) ac_try_echo=$ac_try;; | |
10949 esac | |
10950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10951 $as_echo "$ac_try_echo") >&5 | |
10952 (eval "$ac_try") 2>&5 | |
10953 ac_status=$? | |
10954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10955 (exit $ac_status); }; }; then | |
10956 ac_cv_func_mmap_fixed_mapped=yes | 7822 ac_cv_func_mmap_fixed_mapped=yes |
10957 else | 7823 else |
10958 $as_echo "$as_me: program exited with status $ac_status" >&5 | 7824 ac_cv_func_mmap_fixed_mapped=no |
10959 $as_echo "$as_me: failed program was:" >&5 | 7825 fi |
10960 sed 's/^/| /' conftest.$ac_ext >&5 | 7826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
10961 | 7827 conftest.$ac_objext conftest.beam conftest.$ac_ext |
10962 ( exit $ac_status ) | 7828 fi |
10963 ac_cv_func_mmap_fixed_mapped=no | 7829 |
10964 fi | 7830 fi |
10965 rm -rf conftest.dSYM | 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
10966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10967 fi | |
10968 | |
10969 | |
10970 fi | |
10971 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
10972 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | 7832 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
10973 if test $ac_cv_func_mmap_fixed_mapped = yes; then | 7833 if test $ac_cv_func_mmap_fixed_mapped = yes; then |
10974 | 7834 |
10975 cat >>confdefs.h <<\_ACEOF | 7835 $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
10976 #define HAVE_MMAP 1 | 7836 |
10977 _ACEOF | 7837 fi |
10978 | 7838 rm -f conftest.mmap conftest.txt |
10979 fi | |
10980 rm -f conftest.mmap | |
10981 | 7839 |
10982 if test $use_mmap_for_buffers = yes; then | 7840 if test $use_mmap_for_buffers = yes; then |
10983 REL_ALLOC=no | 7841 REL_ALLOC=no |
10984 fi | 7842 fi |
10985 | 7843 |
10986 LIBS="$LIBS_SYSTEM $LIBS" | 7844 LIBS="$LIBS_SYSTEM $LIBS" |
10987 | 7845 |
10988 | 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
10989 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
10990 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | 7847 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
10991 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | 7848 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : |
10992 $as_echo_n "(cached) " >&6 | 7849 $as_echo_n "(cached) " >&6 |
10993 else | 7850 else |
10994 ac_check_lib_save_LIBS=$LIBS | 7851 ac_check_lib_save_LIBS=$LIBS |
10995 LIBS="-ldnet $LIBS" | 7852 LIBS="-ldnet $LIBS" |
10996 cat >conftest.$ac_ext <<_ACEOF | 7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10997 /* confdefs.h. */ | |
10998 _ACEOF | |
10999 cat confdefs.h >>conftest.$ac_ext | |
11000 cat >>conftest.$ac_ext <<_ACEOF | |
11001 /* end confdefs.h. */ | 7854 /* end confdefs.h. */ |
11002 | 7855 |
11003 /* Override any GCC internal prototype to avoid an error. | 7856 /* Override any GCC internal prototype to avoid an error. |
11004 Use char because int might match the return type of a GCC | 7857 Use char because int might match the return type of a GCC |
11005 builtin and then its argument prototype would still apply. */ | 7858 builtin and then its argument prototype would still apply. */ |
11013 return dnet_ntoa (); | 7866 return dnet_ntoa (); |
11014 ; | 7867 ; |
11015 return 0; | 7868 return 0; |
11016 } | 7869 } |
11017 _ACEOF | 7870 _ACEOF |
11018 rm -f conftest.$ac_objext conftest$ac_exeext | 7871 if ac_fn_c_try_link "$LINENO"; then : |
11019 if { (ac_try="$ac_link" | |
11020 case "(($ac_try" in | |
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11022 *) ac_try_echo=$ac_try;; | |
11023 esac | |
11024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11025 $as_echo "$ac_try_echo") >&5 | |
11026 (eval "$ac_link") 2>conftest.er1 | |
11027 ac_status=$? | |
11028 grep -v '^ *+' conftest.er1 >conftest.err | |
11029 rm -f conftest.er1 | |
11030 cat conftest.err >&5 | |
11031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11032 (exit $ac_status); } && { | |
11033 test -z "$ac_c_werror_flag" || | |
11034 test ! -s conftest.err | |
11035 } && test -s conftest$ac_exeext && { | |
11036 test "$cross_compiling" = yes || | |
11037 $as_test_x conftest$ac_exeext | |
11038 }; then | |
11039 ac_cv_lib_dnet_dnet_ntoa=yes | 7872 ac_cv_lib_dnet_dnet_ntoa=yes |
11040 else | 7873 else |
11041 $as_echo "$as_me: failed program was:" >&5 | 7874 ac_cv_lib_dnet_dnet_ntoa=no |
11042 sed 's/^/| /' conftest.$ac_ext >&5 | 7875 fi |
11043 | 7876 rm -f core conftest.err conftest.$ac_objext \ |
11044 ac_cv_lib_dnet_dnet_ntoa=no | 7877 conftest$ac_exeext conftest.$ac_ext |
11045 fi | |
11046 | |
11047 rm -rf conftest.dSYM | |
11048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11049 conftest$ac_exeext conftest.$ac_ext | |
11050 LIBS=$ac_check_lib_save_LIBS | 7878 LIBS=$ac_check_lib_save_LIBS |
11051 fi | 7879 fi |
11052 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
11053 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | 7881 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
11054 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | 7882 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : |
11055 cat >>confdefs.h <<_ACEOF | 7883 cat >>confdefs.h <<_ACEOF |
11056 #define HAVE_LIBDNET 1 | 7884 #define HAVE_LIBDNET 1 |
11057 _ACEOF | 7885 _ACEOF |
11058 | 7886 |
11059 LIBS="-ldnet $LIBS" | 7887 LIBS="-ldnet $LIBS" |
11060 | 7888 |
11061 fi | 7889 fi |
11062 | 7890 |
11063 | 7891 |
11064 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 | 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 |
11065 $as_echo_n "checking for main in -lXbsd... " >&6; } | 7893 $as_echo_n "checking for main in -lXbsd... " >&6; } |
11066 if test "${ac_cv_lib_Xbsd_main+set}" = set; then | 7894 if test "${ac_cv_lib_Xbsd_main+set}" = set; then : |
11067 $as_echo_n "(cached) " >&6 | 7895 $as_echo_n "(cached) " >&6 |
11068 else | 7896 else |
11069 ac_check_lib_save_LIBS=$LIBS | 7897 ac_check_lib_save_LIBS=$LIBS |
11070 LIBS="-lXbsd $LIBS" | 7898 LIBS="-lXbsd $LIBS" |
11071 cat >conftest.$ac_ext <<_ACEOF | 7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11072 /* confdefs.h. */ | |
11073 _ACEOF | |
11074 cat confdefs.h >>conftest.$ac_ext | |
11075 cat >>conftest.$ac_ext <<_ACEOF | |
11076 /* end confdefs.h. */ | 7900 /* end confdefs.h. */ |
11077 | 7901 |
11078 | 7902 |
11079 int | 7903 int |
11080 main () | 7904 main () |
11082 return main (); | 7906 return main (); |
11083 ; | 7907 ; |
11084 return 0; | 7908 return 0; |
11085 } | 7909 } |
11086 _ACEOF | 7910 _ACEOF |
11087 rm -f conftest.$ac_objext conftest$ac_exeext | 7911 if ac_fn_c_try_link "$LINENO"; then : |
11088 if { (ac_try="$ac_link" | |
11089 case "(($ac_try" in | |
11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11091 *) ac_try_echo=$ac_try;; | |
11092 esac | |
11093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11094 $as_echo "$ac_try_echo") >&5 | |
11095 (eval "$ac_link") 2>conftest.er1 | |
11096 ac_status=$? | |
11097 grep -v '^ *+' conftest.er1 >conftest.err | |
11098 rm -f conftest.er1 | |
11099 cat conftest.err >&5 | |
11100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11101 (exit $ac_status); } && { | |
11102 test -z "$ac_c_werror_flag" || | |
11103 test ! -s conftest.err | |
11104 } && test -s conftest$ac_exeext && { | |
11105 test "$cross_compiling" = yes || | |
11106 $as_test_x conftest$ac_exeext | |
11107 }; then | |
11108 ac_cv_lib_Xbsd_main=yes | 7912 ac_cv_lib_Xbsd_main=yes |
11109 else | 7913 else |
11110 $as_echo "$as_me: failed program was:" >&5 | 7914 ac_cv_lib_Xbsd_main=no |
11111 sed 's/^/| /' conftest.$ac_ext >&5 | 7915 fi |
11112 | 7916 rm -f core conftest.err conftest.$ac_objext \ |
11113 ac_cv_lib_Xbsd_main=no | 7917 conftest$ac_exeext conftest.$ac_ext |
11114 fi | |
11115 | |
11116 rm -rf conftest.dSYM | |
11117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11118 conftest$ac_exeext conftest.$ac_ext | |
11119 LIBS=$ac_check_lib_save_LIBS | 7918 LIBS=$ac_check_lib_save_LIBS |
11120 fi | 7919 fi |
11121 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 | 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 |
11122 $as_echo "$ac_cv_lib_Xbsd_main" >&6; } | 7921 $as_echo "$ac_cv_lib_Xbsd_main" >&6; } |
11123 if test $ac_cv_lib_Xbsd_main = yes; then | 7922 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then : |
11124 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | 7923 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" |
11125 fi | 7924 fi |
11126 | 7925 |
11127 | 7926 |
11128 | 7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5 |
11129 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 | |
11130 $as_echo_n "checking for cma_open in -lpthreads... " >&6; } | 7928 $as_echo_n "checking for cma_open in -lpthreads... " >&6; } |
11131 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | 7929 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then : |
11132 $as_echo_n "(cached) " >&6 | 7930 $as_echo_n "(cached) " >&6 |
11133 else | 7931 else |
11134 ac_check_lib_save_LIBS=$LIBS | 7932 ac_check_lib_save_LIBS=$LIBS |
11135 LIBS="-lpthreads $LIBS" | 7933 LIBS="-lpthreads $LIBS" |
11136 cat >conftest.$ac_ext <<_ACEOF | 7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11137 /* confdefs.h. */ | |
11138 _ACEOF | |
11139 cat confdefs.h >>conftest.$ac_ext | |
11140 cat >>conftest.$ac_ext <<_ACEOF | |
11141 /* end confdefs.h. */ | 7935 /* end confdefs.h. */ |
11142 | 7936 |
11143 /* Override any GCC internal prototype to avoid an error. | 7937 /* Override any GCC internal prototype to avoid an error. |
11144 Use char because int might match the return type of a GCC | 7938 Use char because int might match the return type of a GCC |
11145 builtin and then its argument prototype would still apply. */ | 7939 builtin and then its argument prototype would still apply. */ |
11153 return cma_open (); | 7947 return cma_open (); |
11154 ; | 7948 ; |
11155 return 0; | 7949 return 0; |
11156 } | 7950 } |
11157 _ACEOF | 7951 _ACEOF |
11158 rm -f conftest.$ac_objext conftest$ac_exeext | 7952 if ac_fn_c_try_link "$LINENO"; then : |
11159 if { (ac_try="$ac_link" | |
11160 case "(($ac_try" in | |
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11162 *) ac_try_echo=$ac_try;; | |
11163 esac | |
11164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11165 $as_echo "$ac_try_echo") >&5 | |
11166 (eval "$ac_link") 2>conftest.er1 | |
11167 ac_status=$? | |
11168 grep -v '^ *+' conftest.er1 >conftest.err | |
11169 rm -f conftest.er1 | |
11170 cat conftest.err >&5 | |
11171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11172 (exit $ac_status); } && { | |
11173 test -z "$ac_c_werror_flag" || | |
11174 test ! -s conftest.err | |
11175 } && test -s conftest$ac_exeext && { | |
11176 test "$cross_compiling" = yes || | |
11177 $as_test_x conftest$ac_exeext | |
11178 }; then | |
11179 ac_cv_lib_pthreads_cma_open=yes | 7953 ac_cv_lib_pthreads_cma_open=yes |
11180 else | 7954 else |
11181 $as_echo "$as_me: failed program was:" >&5 | 7955 ac_cv_lib_pthreads_cma_open=no |
11182 sed 's/^/| /' conftest.$ac_ext >&5 | 7956 fi |
11183 | 7957 rm -f core conftest.err conftest.$ac_objext \ |
11184 ac_cv_lib_pthreads_cma_open=no | 7958 conftest$ac_exeext conftest.$ac_ext |
11185 fi | |
11186 | |
11187 rm -rf conftest.dSYM | |
11188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11189 conftest$ac_exeext conftest.$ac_ext | |
11190 LIBS=$ac_check_lib_save_LIBS | 7959 LIBS=$ac_check_lib_save_LIBS |
11191 fi | 7960 fi |
11192 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 | 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5 |
11193 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } | 7962 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } |
11194 if test $ac_cv_lib_pthreads_cma_open = yes; then | 7963 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then : |
11195 cat >>confdefs.h <<_ACEOF | 7964 cat >>confdefs.h <<_ACEOF |
11196 #define HAVE_LIBPTHREADS 1 | 7965 #define HAVE_LIBPTHREADS 1 |
11197 _ACEOF | 7966 _ACEOF |
11198 | 7967 |
11199 LIBS="-lpthreads $LIBS" | 7968 LIBS="-lpthreads $LIBS" |
11214 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads" | 7983 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads" |
11215 | 7984 |
11216 | 7985 |
11217 case ${host_os} in | 7986 case ${host_os} in |
11218 aix*) | 7987 aix*) |
11219 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 | 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 |
11220 $as_echo_n "checking for -bbigtoc option... " >&6; } | 7989 $as_echo_n "checking for -bbigtoc option... " >&6; } |
11221 if test "${gdb_cv_bigtoc+set}" = set; then | 7990 if test "${gdb_cv_bigtoc+set}" = set; then : |
11222 $as_echo_n "(cached) " >&6 | 7991 $as_echo_n "(cached) " >&6 |
11223 else | 7992 else |
11224 | 7993 |
11225 case $GCC in | 7994 case $GCC in |
11226 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | 7995 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; |
11227 *) gdb_cv_bigtoc=-bbigtoc ;; | 7996 *) gdb_cv_bigtoc=-bbigtoc ;; |
11228 esac | 7997 esac |
11229 | 7998 |
11230 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | 7999 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc |
11231 cat >conftest.$ac_ext <<_ACEOF | 8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11232 /* confdefs.h. */ | |
11233 _ACEOF | |
11234 cat confdefs.h >>conftest.$ac_ext | |
11235 cat >>conftest.$ac_ext <<_ACEOF | |
11236 /* end confdefs.h. */ | 8001 /* end confdefs.h. */ |
11237 | 8002 |
11238 int | 8003 int |
11239 main () | 8004 main () |
11240 { | 8005 { |
11241 int i; | 8006 int i; |
11242 ; | 8007 ; |
11243 return 0; | 8008 return 0; |
11244 } | 8009 } |
11245 _ACEOF | 8010 _ACEOF |
11246 rm -f conftest.$ac_objext conftest$ac_exeext | 8011 if ac_fn_c_try_link "$LINENO"; then : |
11247 if { (ac_try="$ac_link" | 8012 |
11248 case "(($ac_try" in | 8013 else |
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 8014 gdb_cv_bigtoc= |
11250 *) ac_try_echo=$ac_try;; | 8015 fi |
11251 esac | 8016 rm -f core conftest.err conftest.$ac_objext \ |
11252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 8017 conftest$ac_exeext conftest.$ac_ext |
11253 $as_echo "$ac_try_echo") >&5 | 8018 |
11254 (eval "$ac_link") 2>conftest.er1 | 8019 fi |
11255 ac_status=$? | 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5 |
11256 grep -v '^ *+' conftest.er1 >conftest.err | |
11257 rm -f conftest.er1 | |
11258 cat conftest.err >&5 | |
11259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11260 (exit $ac_status); } && { | |
11261 test -z "$ac_c_werror_flag" || | |
11262 test ! -s conftest.err | |
11263 } && test -s conftest$ac_exeext && { | |
11264 test "$cross_compiling" = yes || | |
11265 $as_test_x conftest$ac_exeext | |
11266 }; then | |
11267 : | |
11268 else | |
11269 $as_echo "$as_me: failed program was:" >&5 | |
11270 sed 's/^/| /' conftest.$ac_ext >&5 | |
11271 | |
11272 gdb_cv_bigtoc= | |
11273 fi | |
11274 | |
11275 rm -rf conftest.dSYM | |
11276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11277 conftest$ac_exeext conftest.$ac_ext | |
11278 | |
11279 fi | |
11280 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 | |
11281 $as_echo "$gdb_cv_bigtoc" >&6; } | 8021 $as_echo "$gdb_cv_bigtoc" >&6; } |
11282 ;; | 8022 ;; |
11283 esac | 8023 esac |
11284 | 8024 |
11285 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets | 8025 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
11303 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | 8043 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH |
11304 export LD_RUN_PATH | 8044 export LD_RUN_PATH |
11305 fi | 8045 fi |
11306 | 8046 |
11307 if test "${opsys}" = "gnu-linux"; then | 8047 if test "${opsys}" = "gnu-linux"; then |
11308 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 | 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5 |
11309 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } | 8049 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } |
11310 cat >conftest.$ac_ext <<_ACEOF | 8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11311 /* confdefs.h. */ | |
11312 _ACEOF | |
11313 cat confdefs.h >>conftest.$ac_ext | |
11314 cat >>conftest.$ac_ext <<_ACEOF | |
11315 /* end confdefs.h. */ | 8051 /* end confdefs.h. */ |
11316 | 8052 |
11317 int | 8053 int |
11318 main () | 8054 main () |
11319 { | 8055 { |
11320 XOpenDisplay ("foo"); | 8056 XOpenDisplay ("foo"); |
11321 ; | 8057 ; |
11322 return 0; | 8058 return 0; |
11323 } | 8059 } |
11324 _ACEOF | 8060 _ACEOF |
11325 rm -f conftest.$ac_objext conftest$ac_exeext | 8061 if ac_fn_c_try_link "$LINENO"; then : |
11326 if { (ac_try="$ac_link" | |
11327 case "(($ac_try" in | |
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11329 *) ac_try_echo=$ac_try;; | |
11330 esac | |
11331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11332 $as_echo "$ac_try_echo") >&5 | |
11333 (eval "$ac_link") 2>conftest.er1 | |
11334 ac_status=$? | |
11335 grep -v '^ *+' conftest.er1 >conftest.err | |
11336 rm -f conftest.er1 | |
11337 cat conftest.err >&5 | |
11338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11339 (exit $ac_status); } && { | |
11340 test -z "$ac_c_werror_flag" || | |
11341 test ! -s conftest.err | |
11342 } && test -s conftest$ac_exeext && { | |
11343 test "$cross_compiling" = yes || | |
11344 $as_test_x conftest$ac_exeext | |
11345 }; then | |
11346 xlinux_first_failure=no | 8062 xlinux_first_failure=no |
11347 else | 8063 else |
11348 $as_echo "$as_me: failed program was:" >&5 | 8064 xlinux_first_failure=yes |
11349 sed 's/^/| /' conftest.$ac_ext >&5 | 8065 fi |
11350 | 8066 rm -f core conftest.err conftest.$ac_objext \ |
11351 xlinux_first_failure=yes | 8067 conftest$ac_exeext conftest.$ac_ext |
11352 fi | |
11353 | |
11354 rm -rf conftest.dSYM | |
11355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11356 conftest$ac_exeext conftest.$ac_ext | |
11357 if test "${xlinux_first_failure}" = "yes"; then | 8068 if test "${xlinux_first_failure}" = "yes"; then |
11358 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | 8069 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" |
11359 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | 8070 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" |
11360 OLD_CPPFLAGS="$CPPFLAGS" | 8071 OLD_CPPFLAGS="$CPPFLAGS" |
11361 OLD_LIBS="$LIBS" | 8072 OLD_LIBS="$LIBS" |
11362 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | 8073 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" |
11363 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | 8074 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" |
11364 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | 8075 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" |
11365 LIBS="$LIBS -b i486-linuxaout" | 8076 LIBS="$LIBS -b i486-linuxaout" |
11366 cat >conftest.$ac_ext <<_ACEOF | 8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11367 /* confdefs.h. */ | |
11368 _ACEOF | |
11369 cat confdefs.h >>conftest.$ac_ext | |
11370 cat >>conftest.$ac_ext <<_ACEOF | |
11371 /* end confdefs.h. */ | 8078 /* end confdefs.h. */ |
11372 | 8079 |
11373 int | 8080 int |
11374 main () | 8081 main () |
11375 { | 8082 { |
11376 XOpenDisplay ("foo"); | 8083 XOpenDisplay ("foo"); |
11377 ; | 8084 ; |
11378 return 0; | 8085 return 0; |
11379 } | 8086 } |
11380 _ACEOF | 8087 _ACEOF |
11381 rm -f conftest.$ac_objext conftest$ac_exeext | 8088 if ac_fn_c_try_link "$LINENO"; then : |
11382 if { (ac_try="$ac_link" | |
11383 case "(($ac_try" in | |
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11385 *) ac_try_echo=$ac_try;; | |
11386 esac | |
11387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11388 $as_echo "$ac_try_echo") >&5 | |
11389 (eval "$ac_link") 2>conftest.er1 | |
11390 ac_status=$? | |
11391 grep -v '^ *+' conftest.er1 >conftest.err | |
11392 rm -f conftest.er1 | |
11393 cat conftest.err >&5 | |
11394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11395 (exit $ac_status); } && { | |
11396 test -z "$ac_c_werror_flag" || | |
11397 test ! -s conftest.err | |
11398 } && test -s conftest$ac_exeext && { | |
11399 test "$cross_compiling" = yes || | |
11400 $as_test_x conftest$ac_exeext | |
11401 }; then | |
11402 xlinux_second_failure=no | 8089 xlinux_second_failure=no |
11403 else | 8090 else |
11404 $as_echo "$as_me: failed program was:" >&5 | 8091 xlinux_second_failure=yes |
11405 sed 's/^/| /' conftest.$ac_ext >&5 | 8092 fi |
11406 | 8093 rm -f core conftest.err conftest.$ac_objext \ |
11407 xlinux_second_failure=yes | 8094 conftest$ac_exeext conftest.$ac_ext |
11408 fi | |
11409 | |
11410 rm -rf conftest.dSYM | |
11411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11412 conftest$ac_exeext conftest.$ac_ext | |
11413 if test "${xlinux_second_failure}" = "yes"; then | 8095 if test "${xlinux_second_failure}" = "yes"; then |
11414 # If we get the same failure with -b, there is no use adding -b. | 8096 # If we get the same failure with -b, there is no use adding -b. |
11415 # So take it out. This plays safe. | 8097 # So take it out. This plays safe. |
11416 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | 8098 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" |
11417 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | 8099 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" |
11418 CPPFLAGS="$OLD_CPPFLAGS" | 8100 CPPFLAGS="$OLD_CPPFLAGS" |
11419 LIBS="$OLD_LIBS" | 8101 LIBS="$OLD_LIBS" |
11420 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11421 $as_echo "no" >&6; } | 8103 $as_echo "no" >&6; } |
11422 else | 8104 else |
11423 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11424 $as_echo "yes" >&6; } | 8106 $as_echo "yes" >&6; } |
11425 fi | 8107 fi |
11426 else | 8108 else |
11427 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11428 $as_echo "no" >&6; } | 8110 $as_echo "no" >&6; } |
11429 fi | 8111 fi |
11430 fi | 8112 fi |
11431 | 8113 |
11432 # Reportedly, some broken Solaris systems have XKBlib.h but are missing | 8114 # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
11433 # header files included from there. | 8115 # header files included from there. |
11434 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5 | 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5 |
11435 $as_echo_n "checking for Xkb... " >&6; } | 8117 $as_echo_n "checking for Xkb... " >&6; } |
11436 cat >conftest.$ac_ext <<_ACEOF | 8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11437 /* confdefs.h. */ | |
11438 _ACEOF | |
11439 cat confdefs.h >>conftest.$ac_ext | |
11440 cat >>conftest.$ac_ext <<_ACEOF | |
11441 /* end confdefs.h. */ | 8119 /* end confdefs.h. */ |
11442 #include <X11/Xlib.h> | 8120 #include <X11/Xlib.h> |
11443 #include <X11/XKBlib.h> | 8121 #include <X11/XKBlib.h> |
11444 int | 8122 int |
11445 main () | 8123 main () |
11447 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | 8125 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); |
11448 ; | 8126 ; |
11449 return 0; | 8127 return 0; |
11450 } | 8128 } |
11451 _ACEOF | 8129 _ACEOF |
11452 rm -f conftest.$ac_objext conftest$ac_exeext | 8130 if ac_fn_c_try_link "$LINENO"; then : |
11453 if { (ac_try="$ac_link" | |
11454 case "(($ac_try" in | |
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11456 *) ac_try_echo=$ac_try;; | |
11457 esac | |
11458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11459 $as_echo "$ac_try_echo") >&5 | |
11460 (eval "$ac_link") 2>conftest.er1 | |
11461 ac_status=$? | |
11462 grep -v '^ *+' conftest.er1 >conftest.err | |
11463 rm -f conftest.er1 | |
11464 cat conftest.err >&5 | |
11465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11466 (exit $ac_status); } && { | |
11467 test -z "$ac_c_werror_flag" || | |
11468 test ! -s conftest.err | |
11469 } && test -s conftest$ac_exeext && { | |
11470 test "$cross_compiling" = yes || | |
11471 $as_test_x conftest$ac_exeext | |
11472 }; then | |
11473 emacs_xkb=yes | 8131 emacs_xkb=yes |
11474 else | 8132 else |
11475 $as_echo "$as_me: failed program was:" >&5 | 8133 emacs_xkb=no |
11476 sed 's/^/| /' conftest.$ac_ext >&5 | 8134 fi |
11477 | 8135 rm -f core conftest.err conftest.$ac_objext \ |
11478 emacs_xkb=no | 8136 conftest$ac_exeext conftest.$ac_ext |
11479 fi | 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5 |
11480 | |
11481 rm -rf conftest.dSYM | |
11482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11483 conftest$ac_exeext conftest.$ac_ext | |
11484 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5 | |
11485 $as_echo "$emacs_xkb" >&6; } | 8138 $as_echo "$emacs_xkb" >&6; } |
11486 if test $emacs_xkb = yes; then | 8139 if test $emacs_xkb = yes; then |
11487 | 8140 |
11488 cat >>confdefs.h <<\_ACEOF | 8141 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h |
11489 #define HAVE_XKBGETKEYBOARD 1 | |
11490 _ACEOF | |
11491 | 8142 |
11492 fi | 8143 fi |
11493 | 8144 |
11494 | 8145 for ac_func in XrmSetDatabase XScreenResourceString \ |
11495 | |
11496 | |
11497 | |
11498 for ac_func in XrmSetDatabase XScreenResourceString \ | |
11499 XScreenNumberOfScreen XSetWMProtocols | 8146 XScreenNumberOfScreen XSetWMProtocols |
11500 do | 8147 do : |
11501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 8148 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11502 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 8149 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
11503 $as_echo_n "checking for $ac_func... " >&6; } | 8150 eval as_val=\$$as_ac_var |
11504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 8151 if test "x$as_val" = x""yes; then : |
11505 $as_echo_n "(cached) " >&6 | |
11506 else | |
11507 cat >conftest.$ac_ext <<_ACEOF | |
11508 /* confdefs.h. */ | |
11509 _ACEOF | |
11510 cat confdefs.h >>conftest.$ac_ext | |
11511 cat >>conftest.$ac_ext <<_ACEOF | |
11512 /* end confdefs.h. */ | |
11513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11514 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11515 #define $ac_func innocuous_$ac_func | |
11516 | |
11517 /* System header to define __stub macros and hopefully few prototypes, | |
11518 which can conflict with char $ac_func (); below. | |
11519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11520 <limits.h> exists even on freestanding compilers. */ | |
11521 | |
11522 #ifdef __STDC__ | |
11523 # include <limits.h> | |
11524 #else | |
11525 # include <assert.h> | |
11526 #endif | |
11527 | |
11528 #undef $ac_func | |
11529 | |
11530 /* Override any GCC internal prototype to avoid an error. | |
11531 Use char because int might match the return type of a GCC | |
11532 builtin and then its argument prototype would still apply. */ | |
11533 #ifdef __cplusplus | |
11534 extern "C" | |
11535 #endif | |
11536 char $ac_func (); | |
11537 /* The GNU C library defines this for functions which it implements | |
11538 to always fail with ENOSYS. Some functions are actually named | |
11539 something starting with __ and the normal name is an alias. */ | |
11540 #if defined __stub_$ac_func || defined __stub___$ac_func | |
11541 choke me | |
11542 #endif | |
11543 | |
11544 int | |
11545 main () | |
11546 { | |
11547 return $ac_func (); | |
11548 ; | |
11549 return 0; | |
11550 } | |
11551 _ACEOF | |
11552 rm -f conftest.$ac_objext conftest$ac_exeext | |
11553 if { (ac_try="$ac_link" | |
11554 case "(($ac_try" in | |
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11556 *) ac_try_echo=$ac_try;; | |
11557 esac | |
11558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11559 $as_echo "$ac_try_echo") >&5 | |
11560 (eval "$ac_link") 2>conftest.er1 | |
11561 ac_status=$? | |
11562 grep -v '^ *+' conftest.er1 >conftest.err | |
11563 rm -f conftest.er1 | |
11564 cat conftest.err >&5 | |
11565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11566 (exit $ac_status); } && { | |
11567 test -z "$ac_c_werror_flag" || | |
11568 test ! -s conftest.err | |
11569 } && test -s conftest$ac_exeext && { | |
11570 test "$cross_compiling" = yes || | |
11571 $as_test_x conftest$ac_exeext | |
11572 }; then | |
11573 eval "$as_ac_var=yes" | |
11574 else | |
11575 $as_echo "$as_me: failed program was:" >&5 | |
11576 sed 's/^/| /' conftest.$ac_ext >&5 | |
11577 | |
11578 eval "$as_ac_var=no" | |
11579 fi | |
11580 | |
11581 rm -rf conftest.dSYM | |
11582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11583 conftest$ac_exeext conftest.$ac_ext | |
11584 fi | |
11585 ac_res=`eval 'as_val=${'$as_ac_var'} | |
11586 $as_echo "$as_val"'` | |
11587 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11588 $as_echo "$ac_res" >&6; } | |
11589 if test `eval 'as_val=${'$as_ac_var'} | |
11590 $as_echo "$as_val"'` = yes; then | |
11591 cat >>confdefs.h <<_ACEOF | 8152 cat >>confdefs.h <<_ACEOF |
11592 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 8153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
11593 _ACEOF | 8154 _ACEOF |
11594 | 8155 |
11595 fi | 8156 fi |
11596 done | 8157 done |
11597 | 8158 |
11598 fi | 8159 fi |
11599 | 8160 |
11600 if test "${window_system}" = "x11"; then | 8161 if test "${window_system}" = "x11"; then |
11601 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5 | 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5 |
11602 $as_echo_n "checking X11 version 6... " >&6; } | 8163 $as_echo_n "checking X11 version 6... " >&6; } |
11603 if test "${emacs_cv_x11_version_6+set}" = set; then | 8164 if test "${emacs_cv_x11_version_6+set}" = set; then : |
11604 $as_echo_n "(cached) " >&6 | 8165 $as_echo_n "(cached) " >&6 |
11605 else | 8166 else |
11606 cat >conftest.$ac_ext <<_ACEOF | 8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11607 /* confdefs.h. */ | |
11608 _ACEOF | |
11609 cat confdefs.h >>conftest.$ac_ext | |
11610 cat >>conftest.$ac_ext <<_ACEOF | |
11611 /* end confdefs.h. */ | 8168 /* end confdefs.h. */ |
11612 #include <X11/Xlib.h> | 8169 #include <X11/Xlib.h> |
11613 int | 8170 int |
11614 main () | 8171 main () |
11615 { | 8172 { |
11619 | 8176 |
11620 ; | 8177 ; |
11621 return 0; | 8178 return 0; |
11622 } | 8179 } |
11623 _ACEOF | 8180 _ACEOF |
11624 rm -f conftest.$ac_objext conftest$ac_exeext | 8181 if ac_fn_c_try_link "$LINENO"; then : |
11625 if { (ac_try="$ac_link" | |
11626 case "(($ac_try" in | |
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11628 *) ac_try_echo=$ac_try;; | |
11629 esac | |
11630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11631 $as_echo "$ac_try_echo") >&5 | |
11632 (eval "$ac_link") 2>conftest.er1 | |
11633 ac_status=$? | |
11634 grep -v '^ *+' conftest.er1 >conftest.err | |
11635 rm -f conftest.er1 | |
11636 cat conftest.err >&5 | |
11637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11638 (exit $ac_status); } && { | |
11639 test -z "$ac_c_werror_flag" || | |
11640 test ! -s conftest.err | |
11641 } && test -s conftest$ac_exeext && { | |
11642 test "$cross_compiling" = yes || | |
11643 $as_test_x conftest$ac_exeext | |
11644 }; then | |
11645 emacs_cv_x11_version_6=yes | 8182 emacs_cv_x11_version_6=yes |
11646 else | 8183 else |
11647 $as_echo "$as_me: failed program was:" >&5 | 8184 emacs_cv_x11_version_6=no |
11648 sed 's/^/| /' conftest.$ac_ext >&5 | 8185 fi |
11649 | 8186 rm -f core conftest.err conftest.$ac_objext \ |
11650 emacs_cv_x11_version_6=no | 8187 conftest$ac_exeext conftest.$ac_ext |
11651 fi | |
11652 | |
11653 rm -rf conftest.dSYM | |
11654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11655 conftest$ac_exeext conftest.$ac_ext | |
11656 fi | 8188 fi |
11657 | 8189 |
11658 if test $emacs_cv_x11_version_6 = yes; then | 8190 if test $emacs_cv_x11_version_6 = yes; then |
11659 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5 | 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 |
11660 $as_echo "6 or newer" >&6; } | 8192 $as_echo "6 or newer" >&6; } |
11661 | 8193 |
11662 cat >>confdefs.h <<\_ACEOF | 8194 $as_echo "#define HAVE_X11R6 1" >>confdefs.h |
11663 #define HAVE_X11R6 1 | |
11664 _ACEOF | |
11665 | 8195 |
11666 else | 8196 else |
11667 { $as_echo "$as_me:$LINENO: result: before 6" >&5 | 8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 |
11668 $as_echo "before 6" >&6; } | 8198 $as_echo "before 6" >&6; } |
11669 fi | 8199 fi |
11670 fi | 8200 fi |
11671 | 8201 |
11672 | 8202 |
11680 | 8210 |
11681 succeeded=no | 8211 succeeded=no |
11682 | 8212 |
11683 # Extract the first word of "pkg-config", so it can be a program name with args. | 8213 # Extract the first word of "pkg-config", so it can be a program name with args. |
11684 set dummy pkg-config; ac_word=$2 | 8214 set dummy pkg-config; ac_word=$2 |
11685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11686 $as_echo_n "checking for $ac_word... " >&6; } | 8216 $as_echo_n "checking for $ac_word... " >&6; } |
11687 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 8217 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
11688 $as_echo_n "(cached) " >&6 | 8218 $as_echo_n "(cached) " >&6 |
11689 else | 8219 else |
11690 case $PKG_CONFIG in | 8220 case $PKG_CONFIG in |
11691 [\\/]* | ?:[\\/]*) | 8221 [\\/]* | ?:[\\/]*) |
11692 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 8222 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11696 for as_dir in $PATH | 8226 for as_dir in $PATH |
11697 do | 8227 do |
11698 IFS=$as_save_IFS | 8228 IFS=$as_save_IFS |
11699 test -z "$as_dir" && as_dir=. | 8229 test -z "$as_dir" && as_dir=. |
11700 for ac_exec_ext in '' $ac_executable_extensions; do | 8230 for ac_exec_ext in '' $ac_executable_extensions; do |
11701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
11702 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 8232 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
11703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11704 break 2 | 8234 break 2 |
11705 fi | 8235 fi |
11706 done | 8236 done |
11707 done | 8237 done |
11708 IFS=$as_save_IFS | 8238 IFS=$as_save_IFS |
11709 | 8239 |
11710 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 8240 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
11711 ;; | 8241 ;; |
11712 esac | 8242 esac |
11713 fi | 8243 fi |
11714 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 8244 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
11715 if test -n "$PKG_CONFIG"; then | 8245 if test -n "$PKG_CONFIG"; then |
11716 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
11717 $as_echo "$PKG_CONFIG" >&6; } | 8247 $as_echo "$PKG_CONFIG" >&6; } |
11718 else | 8248 else |
11719 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11720 $as_echo "no" >&6; } | 8250 $as_echo "no" >&6; } |
11721 fi | 8251 fi |
11722 | 8252 |
11723 | 8253 |
11724 | 8254 |
11725 if test "$PKG_CONFIG" = "no" ; then | 8255 if test "$PKG_CONFIG" = "no" ; then |
11726 : | 8256 : |
11727 else | 8257 else |
11728 PKG_CONFIG_MIN_VERSION=0.9.0 | 8258 PKG_CONFIG_MIN_VERSION=0.9.0 |
11729 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 8259 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
11730 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5 | 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5 |
11731 $as_echo_n "checking for $RSVG_MODULE... " >&6; } | 8261 $as_echo_n "checking for $RSVG_MODULE... " >&6; } |
11732 | 8262 |
11733 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then | 8263 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then |
11734 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11735 $as_echo "yes" >&6; } | 8265 $as_echo "yes" >&6; } |
11736 succeeded=yes | 8266 succeeded=yes |
11737 | 8267 |
11738 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5 | 8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5 |
11739 $as_echo_n "checking RSVG_CFLAGS... " >&6; } | 8269 $as_echo_n "checking RSVG_CFLAGS... " >&6; } |
11740 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` | 8270 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` |
11741 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5 | 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5 |
11742 $as_echo "$RSVG_CFLAGS" >&6; } | 8272 $as_echo "$RSVG_CFLAGS" >&6; } |
11743 | 8273 |
11744 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5 | 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5 |
11745 $as_echo_n "checking RSVG_LIBS... " >&6; } | 8275 $as_echo_n "checking RSVG_LIBS... " >&6; } |
11746 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` | 8276 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` |
11747 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5 | 8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5 |
11748 $as_echo "$RSVG_LIBS" >&6; } | 8278 $as_echo "$RSVG_LIBS" >&6; } |
11749 else | 8279 else |
11750 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11751 $as_echo "no" >&6; } | 8281 $as_echo "no" >&6; } |
11752 RSVG_CFLAGS="" | 8282 RSVG_CFLAGS="" |
11753 RSVG_LIBS="" | 8283 RSVG_LIBS="" |
11754 ## If we have a custom action on failure, don't print errors, but | 8284 ## If we have a custom action on failure, don't print errors, but |
11755 ## do set a variable so people can do so. | 8285 ## do set a variable so people can do so. |
11775 | 8305 |
11776 | 8306 |
11777 if test ".${RSVG_CFLAGS}" != "."; then | 8307 if test ".${RSVG_CFLAGS}" != "."; then |
11778 HAVE_RSVG=yes | 8308 HAVE_RSVG=yes |
11779 | 8309 |
11780 cat >>confdefs.h <<\_ACEOF | 8310 $as_echo "#define HAVE_RSVG 1" >>confdefs.h |
11781 #define HAVE_RSVG 1 | |
11782 _ACEOF | |
11783 | 8311 |
11784 CFLAGS="$CFLAGS $RSVG_CFLAGS" | 8312 CFLAGS="$CFLAGS $RSVG_CFLAGS" |
11785 LIBS="$RSVG_LIBS $LIBS" | 8313 LIBS="$RSVG_LIBS $LIBS" |
11786 fi | 8314 fi |
11787 fi | 8315 fi |
11797 | 8325 |
11798 succeeded=no | 8326 succeeded=no |
11799 | 8327 |
11800 # Extract the first word of "pkg-config", so it can be a program name with args. | 8328 # Extract the first word of "pkg-config", so it can be a program name with args. |
11801 set dummy pkg-config; ac_word=$2 | 8329 set dummy pkg-config; ac_word=$2 |
11802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11803 $as_echo_n "checking for $ac_word... " >&6; } | 8331 $as_echo_n "checking for $ac_word... " >&6; } |
11804 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 8332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
11805 $as_echo_n "(cached) " >&6 | 8333 $as_echo_n "(cached) " >&6 |
11806 else | 8334 else |
11807 case $PKG_CONFIG in | 8335 case $PKG_CONFIG in |
11808 [\\/]* | ?:[\\/]*) | 8336 [\\/]* | ?:[\\/]*) |
11809 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 8337 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11813 for as_dir in $PATH | 8341 for as_dir in $PATH |
11814 do | 8342 do |
11815 IFS=$as_save_IFS | 8343 IFS=$as_save_IFS |
11816 test -z "$as_dir" && as_dir=. | 8344 test -z "$as_dir" && as_dir=. |
11817 for ac_exec_ext in '' $ac_executable_extensions; do | 8345 for ac_exec_ext in '' $ac_executable_extensions; do |
11818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
11819 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 8347 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
11820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 8348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11821 break 2 | 8349 break 2 |
11822 fi | 8350 fi |
11823 done | 8351 done |
11824 done | 8352 done |
11825 IFS=$as_save_IFS | 8353 IFS=$as_save_IFS |
11826 | 8354 |
11827 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 8355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
11828 ;; | 8356 ;; |
11829 esac | 8357 esac |
11830 fi | 8358 fi |
11831 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 8359 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
11832 if test -n "$PKG_CONFIG"; then | 8360 if test -n "$PKG_CONFIG"; then |
11833 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
11834 $as_echo "$PKG_CONFIG" >&6; } | 8362 $as_echo "$PKG_CONFIG" >&6; } |
11835 else | 8363 else |
11836 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11837 $as_echo "no" >&6; } | 8365 $as_echo "no" >&6; } |
11838 fi | 8366 fi |
11839 | 8367 |
11840 | 8368 |
11841 | 8369 |
11842 if test "$PKG_CONFIG" = "no" ; then | 8370 if test "$PKG_CONFIG" = "no" ; then |
11843 pkg_check_gtk=no | 8371 pkg_check_gtk=no |
11844 else | 8372 else |
11845 PKG_CONFIG_MIN_VERSION=0.9.0 | 8373 PKG_CONFIG_MIN_VERSION=0.9.0 |
11846 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 8374 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
11847 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 | 8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 |
11848 $as_echo_n "checking for $GTK_MODULES... " >&6; } | 8376 $as_echo_n "checking for $GTK_MODULES... " >&6; } |
11849 | 8377 |
11850 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then | 8378 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then |
11851 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11852 $as_echo "yes" >&6; } | 8380 $as_echo "yes" >&6; } |
11853 succeeded=yes | 8381 succeeded=yes |
11854 | 8382 |
11855 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 | 8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5 |
11856 $as_echo_n "checking GTK_CFLAGS... " >&6; } | 8384 $as_echo_n "checking GTK_CFLAGS... " >&6; } |
11857 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` | 8385 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` |
11858 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 | 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5 |
11859 $as_echo "$GTK_CFLAGS" >&6; } | 8387 $as_echo "$GTK_CFLAGS" >&6; } |
11860 | 8388 |
11861 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5 | 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5 |
11862 $as_echo_n "checking GTK_LIBS... " >&6; } | 8390 $as_echo_n "checking GTK_LIBS... " >&6; } |
11863 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` | 8391 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` |
11864 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 | 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5 |
11865 $as_echo "$GTK_LIBS" >&6; } | 8393 $as_echo "$GTK_LIBS" >&6; } |
11866 else | 8394 else |
11867 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11868 $as_echo "no" >&6; } | 8396 $as_echo "no" >&6; } |
11869 GTK_CFLAGS="" | 8397 GTK_CFLAGS="" |
11870 GTK_LIBS="" | 8398 GTK_LIBS="" |
11871 ## If we have a custom action on failure, don't print errors, but | 8399 ## If we have a custom action on failure, don't print errors, but |
11872 ## do set a variable so people can do so. | 8400 ## do set a variable so people can do so. |
11887 else | 8415 else |
11888 pkg_check_gtk=no | 8416 pkg_check_gtk=no |
11889 fi | 8417 fi |
11890 | 8418 |
11891 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then | 8419 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then |
11892 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5 | 8420 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 |
11893 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;} | |
11894 { (exit 1); exit 1; }; } | |
11895 fi | 8421 fi |
11896 fi | 8422 fi |
11897 | 8423 |
11898 | 8424 |
11899 GTK_OBJ= | 8425 GTK_OBJ= |
11903 | 8429 |
11904 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | 8430 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" |
11905 CFLAGS="$CFLAGS $GTK_CFLAGS" | 8431 CFLAGS="$CFLAGS $GTK_CFLAGS" |
11906 LIBS="$GTK_LIBS $LIBS" | 8432 LIBS="$GTK_LIBS $LIBS" |
11907 GTK_COMPILES=no | 8433 GTK_COMPILES=no |
11908 | 8434 for ac_func in gtk_main |
11909 for ac_func in gtk_main | 8435 do : |
11910 do | 8436 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main" |
11911 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 8437 if test "x$ac_cv_func_gtk_main" = x""yes; then : |
11912 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11913 $as_echo_n "checking for $ac_func... " >&6; } | |
11914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
11915 $as_echo_n "(cached) " >&6 | |
11916 else | |
11917 cat >conftest.$ac_ext <<_ACEOF | |
11918 /* confdefs.h. */ | |
11919 _ACEOF | |
11920 cat confdefs.h >>conftest.$ac_ext | |
11921 cat >>conftest.$ac_ext <<_ACEOF | |
11922 /* end confdefs.h. */ | |
11923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11924 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11925 #define $ac_func innocuous_$ac_func | |
11926 | |
11927 /* System header to define __stub macros and hopefully few prototypes, | |
11928 which can conflict with char $ac_func (); below. | |
11929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11930 <limits.h> exists even on freestanding compilers. */ | |
11931 | |
11932 #ifdef __STDC__ | |
11933 # include <limits.h> | |
11934 #else | |
11935 # include <assert.h> | |
11936 #endif | |
11937 | |
11938 #undef $ac_func | |
11939 | |
11940 /* Override any GCC internal prototype to avoid an error. | |
11941 Use char because int might match the return type of a GCC | |
11942 builtin and then its argument prototype would still apply. */ | |
11943 #ifdef __cplusplus | |
11944 extern "C" | |
11945 #endif | |
11946 char $ac_func (); | |
11947 /* The GNU C library defines this for functions which it implements | |
11948 to always fail with ENOSYS. Some functions are actually named | |
11949 something starting with __ and the normal name is an alias. */ | |
11950 #if defined __stub_$ac_func || defined __stub___$ac_func | |
11951 choke me | |
11952 #endif | |
11953 | |
11954 int | |
11955 main () | |
11956 { | |
11957 return $ac_func (); | |
11958 ; | |
11959 return 0; | |
11960 } | |
11961 _ACEOF | |
11962 rm -f conftest.$ac_objext conftest$ac_exeext | |
11963 if { (ac_try="$ac_link" | |
11964 case "(($ac_try" in | |
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11966 *) ac_try_echo=$ac_try;; | |
11967 esac | |
11968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11969 $as_echo "$ac_try_echo") >&5 | |
11970 (eval "$ac_link") 2>conftest.er1 | |
11971 ac_status=$? | |
11972 grep -v '^ *+' conftest.er1 >conftest.err | |
11973 rm -f conftest.er1 | |
11974 cat conftest.err >&5 | |
11975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11976 (exit $ac_status); } && { | |
11977 test -z "$ac_c_werror_flag" || | |
11978 test ! -s conftest.err | |
11979 } && test -s conftest$ac_exeext && { | |
11980 test "$cross_compiling" = yes || | |
11981 $as_test_x conftest$ac_exeext | |
11982 }; then | |
11983 eval "$as_ac_var=yes" | |
11984 else | |
11985 $as_echo "$as_me: failed program was:" >&5 | |
11986 sed 's/^/| /' conftest.$ac_ext >&5 | |
11987 | |
11988 eval "$as_ac_var=no" | |
11989 fi | |
11990 | |
11991 rm -rf conftest.dSYM | |
11992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11993 conftest$ac_exeext conftest.$ac_ext | |
11994 fi | |
11995 ac_res=`eval 'as_val=${'$as_ac_var'} | |
11996 $as_echo "$as_val"'` | |
11997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11998 $as_echo "$ac_res" >&6; } | |
11999 if test `eval 'as_val=${'$as_ac_var'} | |
12000 $as_echo "$as_val"'` = yes; then | |
12001 cat >>confdefs.h <<_ACEOF | 8438 cat >>confdefs.h <<_ACEOF |
12002 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 8439 #define HAVE_GTK_MAIN 1 |
12003 _ACEOF | 8440 _ACEOF |
12004 GTK_COMPILES=yes | 8441 GTK_COMPILES=yes |
12005 fi | 8442 fi |
12006 done | 8443 done |
12007 | 8444 |
12008 if test "${GTK_COMPILES}" != "yes"; then | 8445 if test "${GTK_COMPILES}" != "yes"; then |
12009 if test "$USE_X_TOOLKIT" != "maybe"; then | 8446 if test "$USE_X_TOOLKIT" != "maybe"; then |
12010 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5 | 8447 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; |
12011 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;} | |
12012 { (exit 1); exit 1; }; }; | |
12013 fi | 8448 fi |
12014 else | 8449 else |
12015 HAVE_GTK=yes | 8450 HAVE_GTK=yes |
12016 | 8451 |
12017 cat >>confdefs.h <<\_ACEOF | 8452 $as_echo "#define USE_GTK 1" >>confdefs.h |
12018 #define USE_GTK 1 | |
12019 _ACEOF | |
12020 | 8453 |
12021 GTK_OBJ=gtkutil.o | 8454 GTK_OBJ=gtkutil.o |
12022 USE_X_TOOLKIT=none | 8455 USE_X_TOOLKIT=none |
12023 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then | 8456 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then |
12024 : | 8457 : |
12025 else | 8458 else |
12026 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with | 8459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with |
12027 closing open displays. This is no problem if you just use | 8460 closing open displays. This is no problem if you just use |
12028 one display, but if you use more than one and close one of them | 8461 one display, but if you use more than one and close one of them |
12029 Emacs may crash." >&5 | 8462 Emacs may crash." >&5 |
12030 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with | 8463 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with |
12031 closing open displays. This is no problem if you just use | 8464 closing open displays. This is no problem if you just use |
12044 if test "$with_toolkit_scroll_bars" != no; then | 8477 if test "$with_toolkit_scroll_bars" != no; then |
12045 with_toolkit_scroll_bars=yes | 8478 with_toolkit_scroll_bars=yes |
12046 fi | 8479 fi |
12047 | 8480 |
12048 HAVE_GTK_MULTIDISPLAY=no | 8481 HAVE_GTK_MULTIDISPLAY=no |
12049 | 8482 for ac_func in gdk_display_open |
12050 for ac_func in gdk_display_open | 8483 do : |
12051 do | 8484 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open" |
12052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 8485 if test "x$ac_cv_func_gdk_display_open" = x""yes; then : |
12053 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12054 $as_echo_n "checking for $ac_func... " >&6; } | |
12055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12056 $as_echo_n "(cached) " >&6 | |
12057 else | |
12058 cat >conftest.$ac_ext <<_ACEOF | |
12059 /* confdefs.h. */ | |
12060 _ACEOF | |
12061 cat confdefs.h >>conftest.$ac_ext | |
12062 cat >>conftest.$ac_ext <<_ACEOF | |
12063 /* end confdefs.h. */ | |
12064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12065 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12066 #define $ac_func innocuous_$ac_func | |
12067 | |
12068 /* System header to define __stub macros and hopefully few prototypes, | |
12069 which can conflict with char $ac_func (); below. | |
12070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12071 <limits.h> exists even on freestanding compilers. */ | |
12072 | |
12073 #ifdef __STDC__ | |
12074 # include <limits.h> | |
12075 #else | |
12076 # include <assert.h> | |
12077 #endif | |
12078 | |
12079 #undef $ac_func | |
12080 | |
12081 /* Override any GCC internal prototype to avoid an error. | |
12082 Use char because int might match the return type of a GCC | |
12083 builtin and then its argument prototype would still apply. */ | |
12084 #ifdef __cplusplus | |
12085 extern "C" | |
12086 #endif | |
12087 char $ac_func (); | |
12088 /* The GNU C library defines this for functions which it implements | |
12089 to always fail with ENOSYS. Some functions are actually named | |
12090 something starting with __ and the normal name is an alias. */ | |
12091 #if defined __stub_$ac_func || defined __stub___$ac_func | |
12092 choke me | |
12093 #endif | |
12094 | |
12095 int | |
12096 main () | |
12097 { | |
12098 return $ac_func (); | |
12099 ; | |
12100 return 0; | |
12101 } | |
12102 _ACEOF | |
12103 rm -f conftest.$ac_objext conftest$ac_exeext | |
12104 if { (ac_try="$ac_link" | |
12105 case "(($ac_try" in | |
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12107 *) ac_try_echo=$ac_try;; | |
12108 esac | |
12109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12110 $as_echo "$ac_try_echo") >&5 | |
12111 (eval "$ac_link") 2>conftest.er1 | |
12112 ac_status=$? | |
12113 grep -v '^ *+' conftest.er1 >conftest.err | |
12114 rm -f conftest.er1 | |
12115 cat conftest.err >&5 | |
12116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12117 (exit $ac_status); } && { | |
12118 test -z "$ac_c_werror_flag" || | |
12119 test ! -s conftest.err | |
12120 } && test -s conftest$ac_exeext && { | |
12121 test "$cross_compiling" = yes || | |
12122 $as_test_x conftest$ac_exeext | |
12123 }; then | |
12124 eval "$as_ac_var=yes" | |
12125 else | |
12126 $as_echo "$as_me: failed program was:" >&5 | |
12127 sed 's/^/| /' conftest.$ac_ext >&5 | |
12128 | |
12129 eval "$as_ac_var=no" | |
12130 fi | |
12131 | |
12132 rm -rf conftest.dSYM | |
12133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12134 conftest$ac_exeext conftest.$ac_ext | |
12135 fi | |
12136 ac_res=`eval 'as_val=${'$as_ac_var'} | |
12137 $as_echo "$as_val"'` | |
12138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12139 $as_echo "$ac_res" >&6; } | |
12140 if test `eval 'as_val=${'$as_ac_var'} | |
12141 $as_echo "$as_val"'` = yes; then | |
12142 cat >>confdefs.h <<_ACEOF | 8486 cat >>confdefs.h <<_ACEOF |
12143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 8487 #define HAVE_GDK_DISPLAY_OPEN 1 |
12144 _ACEOF | 8488 _ACEOF |
12145 HAVE_GTK_MULTIDISPLAY=yes | 8489 HAVE_GTK_MULTIDISPLAY=yes |
12146 fi | 8490 fi |
12147 done | 8491 done |
12148 | 8492 |
12149 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then | 8493 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then |
12150 | 8494 |
12151 cat >>confdefs.h <<\_ACEOF | 8495 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h |
12152 #define HAVE_GTK_MULTIDISPLAY 1 | |
12153 _ACEOF | |
12154 | 8496 |
12155 fi | 8497 fi |
12156 | 8498 |
12157 HAVE_GTK_FILE_SELECTION=no | 8499 HAVE_GTK_FILE_SELECTION=no |
12158 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5 | 8500 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default |
12159 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; } | |
12160 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then | |
12161 $as_echo_n "(cached) " >&6 | |
12162 else | |
12163 cat >conftest.$ac_ext <<_ACEOF | |
12164 /* confdefs.h. */ | |
12165 _ACEOF | |
12166 cat confdefs.h >>conftest.$ac_ext | |
12167 cat >>conftest.$ac_ext <<_ACEOF | |
12168 /* end confdefs.h. */ | |
12169 $ac_includes_default | |
12170 #include <gtk/gtk.h> | 8501 #include <gtk/gtk.h> |
12171 | 8502 " |
12172 int | 8503 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then : |
12173 main () | |
12174 { | |
12175 #ifndef GTK_TYPE_FILE_SELECTION | |
12176 (void) GTK_TYPE_FILE_SELECTION; | |
12177 #endif | |
12178 | |
12179 ; | |
12180 return 0; | |
12181 } | |
12182 _ACEOF | |
12183 rm -f conftest.$ac_objext | |
12184 if { (ac_try="$ac_compile" | |
12185 case "(($ac_try" in | |
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12187 *) ac_try_echo=$ac_try;; | |
12188 esac | |
12189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12190 $as_echo "$ac_try_echo") >&5 | |
12191 (eval "$ac_compile") 2>conftest.er1 | |
12192 ac_status=$? | |
12193 grep -v '^ *+' conftest.er1 >conftest.err | |
12194 rm -f conftest.er1 | |
12195 cat conftest.err >&5 | |
12196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12197 (exit $ac_status); } && { | |
12198 test -z "$ac_c_werror_flag" || | |
12199 test ! -s conftest.err | |
12200 } && test -s conftest.$ac_objext; then | |
12201 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes | |
12202 else | |
12203 $as_echo "$as_me: failed program was:" >&5 | |
12204 sed 's/^/| /' conftest.$ac_ext >&5 | |
12205 | |
12206 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no | |
12207 fi | |
12208 | |
12209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12210 fi | |
12211 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5 | |
12212 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; } | |
12213 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then | |
12214 HAVE_GTK_FILE_SELECTION=yes | 8504 HAVE_GTK_FILE_SELECTION=yes |
12215 else | 8505 else |
12216 HAVE_GTK_FILE_SELECTION=no | 8506 HAVE_GTK_FILE_SELECTION=no |
12217 fi | 8507 fi |
12218 | 8508 |
12219 if test "$HAVE_GTK_FILE_SELECTION" = yes; then | 8509 if test "$HAVE_GTK_FILE_SELECTION" = yes; then |
12220 | 8510 for ac_func in gtk_file_selection_new |
12221 for ac_func in gtk_file_selection_new | 8511 do : |
12222 do | 8512 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new" |
12223 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 8513 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then : |
12224 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12225 $as_echo_n "checking for $ac_func... " >&6; } | |
12226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12227 $as_echo_n "(cached) " >&6 | |
12228 else | |
12229 cat >conftest.$ac_ext <<_ACEOF | |
12230 /* confdefs.h. */ | |
12231 _ACEOF | |
12232 cat confdefs.h >>conftest.$ac_ext | |
12233 cat >>conftest.$ac_ext <<_ACEOF | |
12234 /* end confdefs.h. */ | |
12235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12236 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12237 #define $ac_func innocuous_$ac_func | |
12238 | |
12239 /* System header to define __stub macros and hopefully few prototypes, | |
12240 which can conflict with char $ac_func (); below. | |
12241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12242 <limits.h> exists even on freestanding compilers. */ | |
12243 | |
12244 #ifdef __STDC__ | |
12245 # include <limits.h> | |
12246 #else | |
12247 # include <assert.h> | |
12248 #endif | |
12249 | |
12250 #undef $ac_func | |
12251 | |
12252 /* Override any GCC internal prototype to avoid an error. | |
12253 Use char because int might match the return type of a GCC | |
12254 builtin and then its argument prototype would still apply. */ | |
12255 #ifdef __cplusplus | |
12256 extern "C" | |
12257 #endif | |
12258 char $ac_func (); | |
12259 /* The GNU C library defines this for functions which it implements | |
12260 to always fail with ENOSYS. Some functions are actually named | |
12261 something starting with __ and the normal name is an alias. */ | |
12262 #if defined __stub_$ac_func || defined __stub___$ac_func | |
12263 choke me | |
12264 #endif | |
12265 | |
12266 int | |
12267 main () | |
12268 { | |
12269 return $ac_func (); | |
12270 ; | |
12271 return 0; | |
12272 } | |
12273 _ACEOF | |
12274 rm -f conftest.$ac_objext conftest$ac_exeext | |
12275 if { (ac_try="$ac_link" | |
12276 case "(($ac_try" in | |
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12278 *) ac_try_echo=$ac_try;; | |
12279 esac | |
12280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12281 $as_echo "$ac_try_echo") >&5 | |
12282 (eval "$ac_link") 2>conftest.er1 | |
12283 ac_status=$? | |
12284 grep -v '^ *+' conftest.er1 >conftest.err | |
12285 rm -f conftest.er1 | |
12286 cat conftest.err >&5 | |
12287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12288 (exit $ac_status); } && { | |
12289 test -z "$ac_c_werror_flag" || | |
12290 test ! -s conftest.err | |
12291 } && test -s conftest$ac_exeext && { | |
12292 test "$cross_compiling" = yes || | |
12293 $as_test_x conftest$ac_exeext | |
12294 }; then | |
12295 eval "$as_ac_var=yes" | |
12296 else | |
12297 $as_echo "$as_me: failed program was:" >&5 | |
12298 sed 's/^/| /' conftest.$ac_ext >&5 | |
12299 | |
12300 eval "$as_ac_var=no" | |
12301 fi | |
12302 | |
12303 rm -rf conftest.dSYM | |
12304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12305 conftest$ac_exeext conftest.$ac_ext | |
12306 fi | |
12307 ac_res=`eval 'as_val=${'$as_ac_var'} | |
12308 $as_echo "$as_val"'` | |
12309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12310 $as_echo "$ac_res" >&6; } | |
12311 if test `eval 'as_val=${'$as_ac_var'} | |
12312 $as_echo "$as_val"'` = yes; then | |
12313 cat >>confdefs.h <<_ACEOF | 8514 cat >>confdefs.h <<_ACEOF |
12314 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 8515 #define HAVE_GTK_FILE_SELECTION_NEW 1 |
12315 _ACEOF | 8516 _ACEOF |
12316 HAVE_GTK_FILE_SELECTION=yes | 8517 HAVE_GTK_FILE_SELECTION=yes |
12317 else | 8518 else |
12318 HAVE_GTK_FILE_SELECTION=no | 8519 HAVE_GTK_FILE_SELECTION=no |
12319 fi | 8520 fi |
12320 done | 8521 done |
12321 | 8522 |
12322 fi | 8523 fi |
12323 | 8524 |
12324 HAVE_GTK_FILE_CHOOSER=no | 8525 HAVE_GTK_FILE_CHOOSER=no |
12325 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5 | 8526 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default |
12326 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; } | |
12327 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then | |
12328 $as_echo_n "(cached) " >&6 | |
12329 else | |
12330 cat >conftest.$ac_ext <<_ACEOF | |
12331 /* confdefs.h. */ | |
12332 _ACEOF | |
12333 cat confdefs.h >>conftest.$ac_ext | |
12334 cat >>conftest.$ac_ext <<_ACEOF | |
12335 /* end confdefs.h. */ | |
12336 $ac_includes_default | |
12337 #include <gtk/gtk.h> | 8527 #include <gtk/gtk.h> |
12338 | 8528 " |
12339 int | 8529 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then : |
12340 main () | |
12341 { | |
12342 #ifndef GTK_TYPE_FILE_CHOOSER | |
12343 (void) GTK_TYPE_FILE_CHOOSER; | |
12344 #endif | |
12345 | |
12346 ; | |
12347 return 0; | |
12348 } | |
12349 _ACEOF | |
12350 rm -f conftest.$ac_objext | |
12351 if { (ac_try="$ac_compile" | |
12352 case "(($ac_try" in | |
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12354 *) ac_try_echo=$ac_try;; | |
12355 esac | |
12356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12357 $as_echo "$ac_try_echo") >&5 | |
12358 (eval "$ac_compile") 2>conftest.er1 | |
12359 ac_status=$? | |
12360 grep -v '^ *+' conftest.er1 >conftest.err | |
12361 rm -f conftest.er1 | |
12362 cat conftest.err >&5 | |
12363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12364 (exit $ac_status); } && { | |
12365 test -z "$ac_c_werror_flag" || | |
12366 test ! -s conftest.err | |
12367 } && test -s conftest.$ac_objext; then | |
12368 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes | |
12369 else | |
12370 $as_echo "$as_me: failed program was:" >&5 | |
12371 sed 's/^/| /' conftest.$ac_ext >&5 | |
12372 | |
12373 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no | |
12374 fi | |
12375 | |
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12377 fi | |
12378 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5 | |
12379 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; } | |
12380 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then | |
12381 HAVE_GTK_FILE_CHOOSER=yes | 8530 HAVE_GTK_FILE_CHOOSER=yes |
12382 else | 8531 else |
12383 HAVE_GTK_FILE_CHOOSER=no | 8532 HAVE_GTK_FILE_CHOOSER=no |
12384 fi | 8533 fi |
12385 | 8534 |
12386 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then | 8535 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then |
12387 | 8536 for ac_func in gtk_file_chooser_dialog_new |
12388 for ac_func in gtk_file_chooser_dialog_new | 8537 do : |
12389 do | 8538 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new" |
12390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 8539 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then : |
12391 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12392 $as_echo_n "checking for $ac_func... " >&6; } | |
12393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12394 $as_echo_n "(cached) " >&6 | |
12395 else | |
12396 cat >conftest.$ac_ext <<_ACEOF | |
12397 /* confdefs.h. */ | |
12398 _ACEOF | |
12399 cat confdefs.h >>conftest.$ac_ext | |
12400 cat >>conftest.$ac_ext <<_ACEOF | |
12401 /* end confdefs.h. */ | |
12402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12403 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12404 #define $ac_func innocuous_$ac_func | |
12405 | |
12406 /* System header to define __stub macros and hopefully few prototypes, | |
12407 which can conflict with char $ac_func (); below. | |
12408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12409 <limits.h> exists even on freestanding compilers. */ | |
12410 | |
12411 #ifdef __STDC__ | |
12412 # include <limits.h> | |
12413 #else | |
12414 # include <assert.h> | |
12415 #endif | |
12416 | |
12417 #undef $ac_func | |
12418 | |
12419 /* Override any GCC internal prototype to avoid an error. | |
12420 Use char because int might match the return type of a GCC | |
12421 builtin and then its argument prototype would still apply. */ | |
12422 #ifdef __cplusplus | |
12423 extern "C" | |
12424 #endif | |
12425 char $ac_func (); | |
12426 /* The GNU C library defines this for functions which it implements | |
12427 to always fail with ENOSYS. Some functions are actually named | |
12428 something starting with __ and the normal name is an alias. */ | |
12429 #if defined __stub_$ac_func || defined __stub___$ac_func | |
12430 choke me | |
12431 #endif | |
12432 | |
12433 int | |
12434 main () | |
12435 { | |
12436 return $ac_func (); | |
12437 ; | |
12438 return 0; | |
12439 } | |
12440 _ACEOF | |
12441 rm -f conftest.$ac_objext conftest$ac_exeext | |
12442 if { (ac_try="$ac_link" | |
12443 case "(($ac_try" in | |
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12445 *) ac_try_echo=$ac_try;; | |
12446 esac | |
12447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12448 $as_echo "$ac_try_echo") >&5 | |
12449 (eval "$ac_link") 2>conftest.er1 | |
12450 ac_status=$? | |
12451 grep -v '^ *+' conftest.er1 >conftest.err | |
12452 rm -f conftest.er1 | |
12453 cat conftest.err >&5 | |
12454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12455 (exit $ac_status); } && { | |
12456 test -z "$ac_c_werror_flag" || | |
12457 test ! -s conftest.err | |
12458 } && test -s conftest$ac_exeext && { | |
12459 test "$cross_compiling" = yes || | |
12460 $as_test_x conftest$ac_exeext | |
12461 }; then | |
12462 eval "$as_ac_var=yes" | |
12463 else | |
12464 $as_echo "$as_me: failed program was:" >&5 | |
12465 sed 's/^/| /' conftest.$ac_ext >&5 | |
12466 | |
12467 eval "$as_ac_var=no" | |
12468 fi | |
12469 | |
12470 rm -rf conftest.dSYM | |
12471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12472 conftest$ac_exeext conftest.$ac_ext | |
12473 fi | |
12474 ac_res=`eval 'as_val=${'$as_ac_var'} | |
12475 $as_echo "$as_val"'` | |
12476 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12477 $as_echo "$ac_res" >&6; } | |
12478 if test `eval 'as_val=${'$as_ac_var'} | |
12479 $as_echo "$as_val"'` = yes; then | |
12480 cat >>confdefs.h <<_ACEOF | 8540 cat >>confdefs.h <<_ACEOF |
12481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 8541 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1 |
12482 _ACEOF | 8542 _ACEOF |
12483 HAVE_GTK_FILE_CHOOSER=yes | 8543 HAVE_GTK_FILE_CHOOSER=yes |
12484 else | 8544 else |
12485 HAVE_GTK_FILE_CHOOSER=no | 8545 HAVE_GTK_FILE_CHOOSER=no |
12486 fi | 8546 fi |
12489 fi | 8549 fi |
12490 | 8550 |
12491 if test "$HAVE_GTK_FILE_SELECTION" = yes \ | 8551 if test "$HAVE_GTK_FILE_SELECTION" = yes \ |
12492 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then | 8552 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then |
12493 | 8553 |
12494 cat >>confdefs.h <<\_ACEOF | 8554 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h |
12495 #define HAVE_GTK_FILE_BOTH 1 | |
12496 _ACEOF | |
12497 | 8555 |
12498 fi | 8556 fi |
12499 | 8557 |
12500 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then | 8558 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then |
12501 HAVE_GTK_AND_PTHREAD=no | 8559 HAVE_GTK_AND_PTHREAD=no |
12502 | 8560 for ac_header in pthread.h |
12503 for ac_header in pthread.h | 8561 do : |
12504 do | 8562 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
12505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 8563 if test "x$ac_cv_header_pthread_h" = x""yes; then : |
12506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12508 $as_echo_n "checking for $ac_header... " >&6; } | |
12509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12510 $as_echo_n "(cached) " >&6 | |
12511 fi | |
12512 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12513 $as_echo "$as_val"'` | |
12514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12515 $as_echo "$ac_res" >&6; } | |
12516 else | |
12517 # Is the header compilable? | |
12518 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12519 $as_echo_n "checking $ac_header usability... " >&6; } | |
12520 cat >conftest.$ac_ext <<_ACEOF | |
12521 /* confdefs.h. */ | |
12522 _ACEOF | |
12523 cat confdefs.h >>conftest.$ac_ext | |
12524 cat >>conftest.$ac_ext <<_ACEOF | |
12525 /* end confdefs.h. */ | |
12526 $ac_includes_default | |
12527 #include <$ac_header> | |
12528 _ACEOF | |
12529 rm -f conftest.$ac_objext | |
12530 if { (ac_try="$ac_compile" | |
12531 case "(($ac_try" in | |
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12533 *) ac_try_echo=$ac_try;; | |
12534 esac | |
12535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12536 $as_echo "$ac_try_echo") >&5 | |
12537 (eval "$ac_compile") 2>conftest.er1 | |
12538 ac_status=$? | |
12539 grep -v '^ *+' conftest.er1 >conftest.err | |
12540 rm -f conftest.er1 | |
12541 cat conftest.err >&5 | |
12542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12543 (exit $ac_status); } && { | |
12544 test -z "$ac_c_werror_flag" || | |
12545 test ! -s conftest.err | |
12546 } && test -s conftest.$ac_objext; then | |
12547 ac_header_compiler=yes | |
12548 else | |
12549 $as_echo "$as_me: failed program was:" >&5 | |
12550 sed 's/^/| /' conftest.$ac_ext >&5 | |
12551 | |
12552 ac_header_compiler=no | |
12553 fi | |
12554 | |
12555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12556 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12557 $as_echo "$ac_header_compiler" >&6; } | |
12558 | |
12559 # Is the header present? | |
12560 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12561 $as_echo_n "checking $ac_header presence... " >&6; } | |
12562 cat >conftest.$ac_ext <<_ACEOF | |
12563 /* confdefs.h. */ | |
12564 _ACEOF | |
12565 cat confdefs.h >>conftest.$ac_ext | |
12566 cat >>conftest.$ac_ext <<_ACEOF | |
12567 /* end confdefs.h. */ | |
12568 #include <$ac_header> | |
12569 _ACEOF | |
12570 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12571 case "(($ac_try" in | |
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12573 *) ac_try_echo=$ac_try;; | |
12574 esac | |
12575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12576 $as_echo "$ac_try_echo") >&5 | |
12577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12578 ac_status=$? | |
12579 grep -v '^ *+' conftest.er1 >conftest.err | |
12580 rm -f conftest.er1 | |
12581 cat conftest.err >&5 | |
12582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12583 (exit $ac_status); } >/dev/null && { | |
12584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12585 test ! -s conftest.err | |
12586 }; then | |
12587 ac_header_preproc=yes | |
12588 else | |
12589 $as_echo "$as_me: failed program was:" >&5 | |
12590 sed 's/^/| /' conftest.$ac_ext >&5 | |
12591 | |
12592 ac_header_preproc=no | |
12593 fi | |
12594 | |
12595 rm -f conftest.err conftest.$ac_ext | |
12596 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12597 $as_echo "$ac_header_preproc" >&6; } | |
12598 | |
12599 # So? What about this header? | |
12600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12601 yes:no: ) | |
12602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12603 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12605 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12606 ac_header_preproc=yes | |
12607 ;; | |
12608 no:yes:* ) | |
12609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12610 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12612 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12614 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12616 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12620 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12621 | |
12622 ;; | |
12623 esac | |
12624 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12625 $as_echo_n "checking for $ac_header... " >&6; } | |
12626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12627 $as_echo_n "(cached) " >&6 | |
12628 else | |
12629 eval "$as_ac_Header=\$ac_header_preproc" | |
12630 fi | |
12631 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12632 $as_echo "$as_val"'` | |
12633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12634 $as_echo "$ac_res" >&6; } | |
12635 | |
12636 fi | |
12637 if test `eval 'as_val=${'$as_ac_Header'} | |
12638 $as_echo "$as_val"'` = yes; then | |
12639 cat >>confdefs.h <<_ACEOF | 8564 cat >>confdefs.h <<_ACEOF |
12640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 8565 #define HAVE_PTHREAD_H 1 |
12641 _ACEOF | 8566 _ACEOF |
12642 | 8567 |
12643 fi | 8568 fi |
12644 | 8569 |
12645 done | 8570 done |
12646 | 8571 |
12647 if test "$ac_cv_header_pthread_h"; then | 8572 if test "$ac_cv_header_pthread_h"; then |
12648 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5 | 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 |
12649 $as_echo_n "checking for pthread_self in -lpthread... " >&6; } | 8574 $as_echo_n "checking for pthread_self in -lpthread... " >&6; } |
12650 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then | 8575 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then : |
12651 $as_echo_n "(cached) " >&6 | 8576 $as_echo_n "(cached) " >&6 |
12652 else | 8577 else |
12653 ac_check_lib_save_LIBS=$LIBS | 8578 ac_check_lib_save_LIBS=$LIBS |
12654 LIBS="-lpthread $LIBS" | 8579 LIBS="-lpthread $LIBS" |
12655 cat >conftest.$ac_ext <<_ACEOF | 8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12656 /* confdefs.h. */ | |
12657 _ACEOF | |
12658 cat confdefs.h >>conftest.$ac_ext | |
12659 cat >>conftest.$ac_ext <<_ACEOF | |
12660 /* end confdefs.h. */ | 8581 /* end confdefs.h. */ |
12661 | 8582 |
12662 /* Override any GCC internal prototype to avoid an error. | 8583 /* Override any GCC internal prototype to avoid an error. |
12663 Use char because int might match the return type of a GCC | 8584 Use char because int might match the return type of a GCC |
12664 builtin and then its argument prototype would still apply. */ | 8585 builtin and then its argument prototype would still apply. */ |
12672 return pthread_self (); | 8593 return pthread_self (); |
12673 ; | 8594 ; |
12674 return 0; | 8595 return 0; |
12675 } | 8596 } |
12676 _ACEOF | 8597 _ACEOF |
12677 rm -f conftest.$ac_objext conftest$ac_exeext | 8598 if ac_fn_c_try_link "$LINENO"; then : |
12678 if { (ac_try="$ac_link" | |
12679 case "(($ac_try" in | |
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12681 *) ac_try_echo=$ac_try;; | |
12682 esac | |
12683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12684 $as_echo "$ac_try_echo") >&5 | |
12685 (eval "$ac_link") 2>conftest.er1 | |
12686 ac_status=$? | |
12687 grep -v '^ *+' conftest.er1 >conftest.err | |
12688 rm -f conftest.er1 | |
12689 cat conftest.err >&5 | |
12690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12691 (exit $ac_status); } && { | |
12692 test -z "$ac_c_werror_flag" || | |
12693 test ! -s conftest.err | |
12694 } && test -s conftest$ac_exeext && { | |
12695 test "$cross_compiling" = yes || | |
12696 $as_test_x conftest$ac_exeext | |
12697 }; then | |
12698 ac_cv_lib_pthread_pthread_self=yes | 8599 ac_cv_lib_pthread_pthread_self=yes |
12699 else | 8600 else |
12700 $as_echo "$as_me: failed program was:" >&5 | 8601 ac_cv_lib_pthread_pthread_self=no |
12701 sed 's/^/| /' conftest.$ac_ext >&5 | 8602 fi |
12702 | 8603 rm -f core conftest.err conftest.$ac_objext \ |
12703 ac_cv_lib_pthread_pthread_self=no | 8604 conftest$ac_exeext conftest.$ac_ext |
12704 fi | |
12705 | |
12706 rm -rf conftest.dSYM | |
12707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12708 conftest$ac_exeext conftest.$ac_ext | |
12709 LIBS=$ac_check_lib_save_LIBS | 8605 LIBS=$ac_check_lib_save_LIBS |
12710 fi | 8606 fi |
12711 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5 | 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 |
12712 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } | 8608 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } |
12713 if test $ac_cv_lib_pthread_pthread_self = yes; then | 8609 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then : |
12714 HAVE_GTK_AND_PTHREAD=yes | 8610 HAVE_GTK_AND_PTHREAD=yes |
12715 fi | 8611 fi |
12716 | 8612 |
12717 fi | 8613 fi |
12718 if test "$HAVE_GTK_AND_PTHREAD" = yes; then | 8614 if test "$HAVE_GTK_AND_PTHREAD" = yes; then |
12719 case "${canonical}" in | 8615 case "${canonical}" in |
12720 *-hpux*) ;; | 8616 *-hpux*) ;; |
12721 *) GTK_LIBS="$GTK_LIBS -lpthread" ;; | 8617 *) GTK_LIBS="$GTK_LIBS -lpthread" ;; |
12722 esac | 8618 esac |
12723 | 8619 |
12724 cat >>confdefs.h <<\_ACEOF | 8620 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h |
12725 #define HAVE_GTK_AND_PTHREAD 1 | |
12726 _ACEOF | |
12727 | 8621 |
12728 fi | 8622 fi |
12729 fi | 8623 fi |
12730 fi | 8624 fi |
12731 | 8625 |
12735 | 8629 |
12736 succeeded=no | 8630 succeeded=no |
12737 | 8631 |
12738 # Extract the first word of "pkg-config", so it can be a program name with args. | 8632 # Extract the first word of "pkg-config", so it can be a program name with args. |
12739 set dummy pkg-config; ac_word=$2 | 8633 set dummy pkg-config; ac_word=$2 |
12740 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12741 $as_echo_n "checking for $ac_word... " >&6; } | 8635 $as_echo_n "checking for $ac_word... " >&6; } |
12742 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 8636 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
12743 $as_echo_n "(cached) " >&6 | 8637 $as_echo_n "(cached) " >&6 |
12744 else | 8638 else |
12745 case $PKG_CONFIG in | 8639 case $PKG_CONFIG in |
12746 [\\/]* | ?:[\\/]*) | 8640 [\\/]* | ?:[\\/]*) |
12747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 8641 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12751 for as_dir in $PATH | 8645 for as_dir in $PATH |
12752 do | 8646 do |
12753 IFS=$as_save_IFS | 8647 IFS=$as_save_IFS |
12754 test -z "$as_dir" && as_dir=. | 8648 test -z "$as_dir" && as_dir=. |
12755 for ac_exec_ext in '' $ac_executable_extensions; do | 8649 for ac_exec_ext in '' $ac_executable_extensions; do |
12756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
12757 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 8651 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
12758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12759 break 2 | 8653 break 2 |
12760 fi | 8654 fi |
12761 done | 8655 done |
12762 done | 8656 done |
12763 IFS=$as_save_IFS | 8657 IFS=$as_save_IFS |
12764 | 8658 |
12765 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 8659 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12766 ;; | 8660 ;; |
12767 esac | 8661 esac |
12768 fi | 8662 fi |
12769 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 8663 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
12770 if test -n "$PKG_CONFIG"; then | 8664 if test -n "$PKG_CONFIG"; then |
12771 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
12772 $as_echo "$PKG_CONFIG" >&6; } | 8666 $as_echo "$PKG_CONFIG" >&6; } |
12773 else | 8667 else |
12774 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12775 $as_echo "no" >&6; } | 8669 $as_echo "no" >&6; } |
12776 fi | 8670 fi |
12777 | 8671 |
12778 | 8672 |
12779 | 8673 |
12780 if test "$PKG_CONFIG" = "no" ; then | 8674 if test "$PKG_CONFIG" = "no" ; then |
12781 HAVE_DBUS=no | 8675 HAVE_DBUS=no |
12782 else | 8676 else |
12783 PKG_CONFIG_MIN_VERSION=0.9.0 | 8677 PKG_CONFIG_MIN_VERSION=0.9.0 |
12784 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 8678 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
12785 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5 | 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5 |
12786 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; } | 8680 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; } |
12787 | 8681 |
12788 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then | 8682 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then |
12789 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12790 $as_echo "yes" >&6; } | 8684 $as_echo "yes" >&6; } |
12791 succeeded=yes | 8685 succeeded=yes |
12792 | 8686 |
12793 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5 | 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5 |
12794 $as_echo_n "checking DBUS_CFLAGS... " >&6; } | 8688 $as_echo_n "checking DBUS_CFLAGS... " >&6; } |
12795 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` | 8689 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` |
12796 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5 | 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5 |
12797 $as_echo "$DBUS_CFLAGS" >&6; } | 8691 $as_echo "$DBUS_CFLAGS" >&6; } |
12798 | 8692 |
12799 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5 | 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5 |
12800 $as_echo_n "checking DBUS_LIBS... " >&6; } | 8694 $as_echo_n "checking DBUS_LIBS... " >&6; } |
12801 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` | 8695 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` |
12802 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5 | 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5 |
12803 $as_echo "$DBUS_LIBS" >&6; } | 8697 $as_echo "$DBUS_LIBS" >&6; } |
12804 else | 8698 else |
12805 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12806 $as_echo "no" >&6; } | 8700 $as_echo "no" >&6; } |
12807 DBUS_CFLAGS="" | 8701 DBUS_CFLAGS="" |
12808 DBUS_LIBS="" | 8702 DBUS_LIBS="" |
12809 ## If we have a custom action on failure, don't print errors, but | 8703 ## If we have a custom action on failure, don't print errors, but |
12810 ## do set a variable so people can do so. | 8704 ## do set a variable so people can do so. |
12827 fi | 8721 fi |
12828 | 8722 |
12829 if test "$HAVE_DBUS" = yes; then | 8723 if test "$HAVE_DBUS" = yes; then |
12830 LIBS="$LIBS $DBUS_LIBS" | 8724 LIBS="$LIBS $DBUS_LIBS" |
12831 | 8725 |
12832 cat >>confdefs.h <<\_ACEOF | 8726 $as_echo "#define HAVE_DBUS 1" >>confdefs.h |
12833 #define HAVE_DBUS 1 | 8727 |
12834 _ACEOF | 8728 for ac_func in dbus_watch_get_unix_fd |
12835 | 8729 do : |
12836 | 8730 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd" |
12837 for ac_func in dbus_watch_get_unix_fd | 8731 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then : |
12838 do | |
12839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12840 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12841 $as_echo_n "checking for $ac_func... " >&6; } | |
12842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12843 $as_echo_n "(cached) " >&6 | |
12844 else | |
12845 cat >conftest.$ac_ext <<_ACEOF | |
12846 /* confdefs.h. */ | |
12847 _ACEOF | |
12848 cat confdefs.h >>conftest.$ac_ext | |
12849 cat >>conftest.$ac_ext <<_ACEOF | |
12850 /* end confdefs.h. */ | |
12851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12852 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12853 #define $ac_func innocuous_$ac_func | |
12854 | |
12855 /* System header to define __stub macros and hopefully few prototypes, | |
12856 which can conflict with char $ac_func (); below. | |
12857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12858 <limits.h> exists even on freestanding compilers. */ | |
12859 | |
12860 #ifdef __STDC__ | |
12861 # include <limits.h> | |
12862 #else | |
12863 # include <assert.h> | |
12864 #endif | |
12865 | |
12866 #undef $ac_func | |
12867 | |
12868 /* Override any GCC internal prototype to avoid an error. | |
12869 Use char because int might match the return type of a GCC | |
12870 builtin and then its argument prototype would still apply. */ | |
12871 #ifdef __cplusplus | |
12872 extern "C" | |
12873 #endif | |
12874 char $ac_func (); | |
12875 /* The GNU C library defines this for functions which it implements | |
12876 to always fail with ENOSYS. Some functions are actually named | |
12877 something starting with __ and the normal name is an alias. */ | |
12878 #if defined __stub_$ac_func || defined __stub___$ac_func | |
12879 choke me | |
12880 #endif | |
12881 | |
12882 int | |
12883 main () | |
12884 { | |
12885 return $ac_func (); | |
12886 ; | |
12887 return 0; | |
12888 } | |
12889 _ACEOF | |
12890 rm -f conftest.$ac_objext conftest$ac_exeext | |
12891 if { (ac_try="$ac_link" | |
12892 case "(($ac_try" in | |
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12894 *) ac_try_echo=$ac_try;; | |
12895 esac | |
12896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12897 $as_echo "$ac_try_echo") >&5 | |
12898 (eval "$ac_link") 2>conftest.er1 | |
12899 ac_status=$? | |
12900 grep -v '^ *+' conftest.er1 >conftest.err | |
12901 rm -f conftest.er1 | |
12902 cat conftest.err >&5 | |
12903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12904 (exit $ac_status); } && { | |
12905 test -z "$ac_c_werror_flag" || | |
12906 test ! -s conftest.err | |
12907 } && test -s conftest$ac_exeext && { | |
12908 test "$cross_compiling" = yes || | |
12909 $as_test_x conftest$ac_exeext | |
12910 }; then | |
12911 eval "$as_ac_var=yes" | |
12912 else | |
12913 $as_echo "$as_me: failed program was:" >&5 | |
12914 sed 's/^/| /' conftest.$ac_ext >&5 | |
12915 | |
12916 eval "$as_ac_var=no" | |
12917 fi | |
12918 | |
12919 rm -rf conftest.dSYM | |
12920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12921 conftest$ac_exeext conftest.$ac_ext | |
12922 fi | |
12923 ac_res=`eval 'as_val=${'$as_ac_var'} | |
12924 $as_echo "$as_val"'` | |
12925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12926 $as_echo "$ac_res" >&6; } | |
12927 if test `eval 'as_val=${'$as_ac_var'} | |
12928 $as_echo "$as_val"'` = yes; then | |
12929 cat >>confdefs.h <<_ACEOF | 8732 cat >>confdefs.h <<_ACEOF |
12930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 8733 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1 |
12931 _ACEOF | 8734 _ACEOF |
12932 | 8735 |
12933 fi | 8736 fi |
12934 done | 8737 done |
12935 | 8738 |
12943 | 8746 |
12944 succeeded=no | 8747 succeeded=no |
12945 | 8748 |
12946 # Extract the first word of "pkg-config", so it can be a program name with args. | 8749 # Extract the first word of "pkg-config", so it can be a program name with args. |
12947 set dummy pkg-config; ac_word=$2 | 8750 set dummy pkg-config; ac_word=$2 |
12948 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12949 $as_echo_n "checking for $ac_word... " >&6; } | 8752 $as_echo_n "checking for $ac_word... " >&6; } |
12950 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 8753 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
12951 $as_echo_n "(cached) " >&6 | 8754 $as_echo_n "(cached) " >&6 |
12952 else | 8755 else |
12953 case $PKG_CONFIG in | 8756 case $PKG_CONFIG in |
12954 [\\/]* | ?:[\\/]*) | 8757 [\\/]* | ?:[\\/]*) |
12955 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 8758 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12959 for as_dir in $PATH | 8762 for as_dir in $PATH |
12960 do | 8763 do |
12961 IFS=$as_save_IFS | 8764 IFS=$as_save_IFS |
12962 test -z "$as_dir" && as_dir=. | 8765 test -z "$as_dir" && as_dir=. |
12963 for ac_exec_ext in '' $ac_executable_extensions; do | 8766 for ac_exec_ext in '' $ac_executable_extensions; do |
12964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
12965 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 8768 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
12966 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12967 break 2 | 8770 break 2 |
12968 fi | 8771 fi |
12969 done | 8772 done |
12970 done | 8773 done |
12971 IFS=$as_save_IFS | 8774 IFS=$as_save_IFS |
12972 | 8775 |
12973 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 8776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12974 ;; | 8777 ;; |
12975 esac | 8778 esac |
12976 fi | 8779 fi |
12977 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 8780 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
12978 if test -n "$PKG_CONFIG"; then | 8781 if test -n "$PKG_CONFIG"; then |
12979 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
12980 $as_echo "$PKG_CONFIG" >&6; } | 8783 $as_echo "$PKG_CONFIG" >&6; } |
12981 else | 8784 else |
12982 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12983 $as_echo "no" >&6; } | 8786 $as_echo "no" >&6; } |
12984 fi | 8787 fi |
12985 | 8788 |
12986 | 8789 |
12987 | 8790 |
12988 if test "$PKG_CONFIG" = "no" ; then | 8791 if test "$PKG_CONFIG" = "no" ; then |
12989 HAVE_GCONF=no | 8792 HAVE_GCONF=no |
12990 else | 8793 else |
12991 PKG_CONFIG_MIN_VERSION=0.9.0 | 8794 PKG_CONFIG_MIN_VERSION=0.9.0 |
12992 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 8795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
12993 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5 | 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5 |
12994 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } | 8797 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } |
12995 | 8798 |
12996 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then | 8799 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then |
12997 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12998 $as_echo "yes" >&6; } | 8801 $as_echo "yes" >&6; } |
12999 succeeded=yes | 8802 succeeded=yes |
13000 | 8803 |
13001 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5 | 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5 |
13002 $as_echo_n "checking GCONF_CFLAGS... " >&6; } | 8805 $as_echo_n "checking GCONF_CFLAGS... " >&6; } |
13003 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` | 8806 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` |
13004 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5 | 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5 |
13005 $as_echo "$GCONF_CFLAGS" >&6; } | 8808 $as_echo "$GCONF_CFLAGS" >&6; } |
13006 | 8809 |
13007 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5 | 8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5 |
13008 $as_echo_n "checking GCONF_LIBS... " >&6; } | 8811 $as_echo_n "checking GCONF_LIBS... " >&6; } |
13009 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` | 8812 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` |
13010 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5 | 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5 |
13011 $as_echo "$GCONF_LIBS" >&6; } | 8814 $as_echo "$GCONF_LIBS" >&6; } |
13012 else | 8815 else |
13013 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13014 $as_echo "no" >&6; } | 8817 $as_echo "no" >&6; } |
13015 GCONF_CFLAGS="" | 8818 GCONF_CFLAGS="" |
13016 GCONF_LIBS="" | 8819 GCONF_LIBS="" |
13017 ## If we have a custom action on failure, don't print errors, but | 8820 ## If we have a custom action on failure, don't print errors, but |
13018 ## do set a variable so people can do so. | 8821 ## do set a variable so people can do so. |
13034 HAVE_GCONF=no | 8837 HAVE_GCONF=no |
13035 fi | 8838 fi |
13036 | 8839 |
13037 if test "$HAVE_GCONF" = yes; then | 8840 if test "$HAVE_GCONF" = yes; then |
13038 | 8841 |
13039 cat >>confdefs.h <<\_ACEOF | 8842 $as_echo "#define HAVE_GCONF 1" >>confdefs.h |
13040 #define HAVE_GCONF 1 | |
13041 _ACEOF | |
13042 | 8843 |
13043 fi | 8844 fi |
13044 fi | 8845 fi |
13045 | 8846 |
13046 HAVE_LIBSELINUX=no | 8847 HAVE_LIBSELINUX=no |
13047 LIBSELINUX_LIBS= | 8848 LIBSELINUX_LIBS= |
13048 if test "${with_selinux}" = "yes"; then | 8849 if test "${with_selinux}" = "yes"; then |
13049 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5 | 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5 |
13050 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } | 8851 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } |
13051 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then | 8852 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then : |
13052 $as_echo_n "(cached) " >&6 | 8853 $as_echo_n "(cached) " >&6 |
13053 else | 8854 else |
13054 ac_check_lib_save_LIBS=$LIBS | 8855 ac_check_lib_save_LIBS=$LIBS |
13055 LIBS="-lselinux $LIBS" | 8856 LIBS="-lselinux $LIBS" |
13056 cat >conftest.$ac_ext <<_ACEOF | 8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13057 /* confdefs.h. */ | |
13058 _ACEOF | |
13059 cat confdefs.h >>conftest.$ac_ext | |
13060 cat >>conftest.$ac_ext <<_ACEOF | |
13061 /* end confdefs.h. */ | 8858 /* end confdefs.h. */ |
13062 | 8859 |
13063 /* Override any GCC internal prototype to avoid an error. | 8860 /* Override any GCC internal prototype to avoid an error. |
13064 Use char because int might match the return type of a GCC | 8861 Use char because int might match the return type of a GCC |
13065 builtin and then its argument prototype would still apply. */ | 8862 builtin and then its argument prototype would still apply. */ |
13073 return lgetfilecon (); | 8870 return lgetfilecon (); |
13074 ; | 8871 ; |
13075 return 0; | 8872 return 0; |
13076 } | 8873 } |
13077 _ACEOF | 8874 _ACEOF |
13078 rm -f conftest.$ac_objext conftest$ac_exeext | 8875 if ac_fn_c_try_link "$LINENO"; then : |
13079 if { (ac_try="$ac_link" | |
13080 case "(($ac_try" in | |
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13082 *) ac_try_echo=$ac_try;; | |
13083 esac | |
13084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13085 $as_echo "$ac_try_echo") >&5 | |
13086 (eval "$ac_link") 2>conftest.er1 | |
13087 ac_status=$? | |
13088 grep -v '^ *+' conftest.er1 >conftest.err | |
13089 rm -f conftest.er1 | |
13090 cat conftest.err >&5 | |
13091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13092 (exit $ac_status); } && { | |
13093 test -z "$ac_c_werror_flag" || | |
13094 test ! -s conftest.err | |
13095 } && test -s conftest$ac_exeext && { | |
13096 test "$cross_compiling" = yes || | |
13097 $as_test_x conftest$ac_exeext | |
13098 }; then | |
13099 ac_cv_lib_selinux_lgetfilecon=yes | 8876 ac_cv_lib_selinux_lgetfilecon=yes |
13100 else | 8877 else |
13101 $as_echo "$as_me: failed program was:" >&5 | 8878 ac_cv_lib_selinux_lgetfilecon=no |
13102 sed 's/^/| /' conftest.$ac_ext >&5 | 8879 fi |
13103 | 8880 rm -f core conftest.err conftest.$ac_objext \ |
13104 ac_cv_lib_selinux_lgetfilecon=no | 8881 conftest$ac_exeext conftest.$ac_ext |
13105 fi | |
13106 | |
13107 rm -rf conftest.dSYM | |
13108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13109 conftest$ac_exeext conftest.$ac_ext | |
13110 LIBS=$ac_check_lib_save_LIBS | 8882 LIBS=$ac_check_lib_save_LIBS |
13111 fi | 8883 fi |
13112 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5 | 8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5 |
13113 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } | 8885 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } |
13114 if test $ac_cv_lib_selinux_lgetfilecon = yes; then | 8886 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then : |
13115 HAVE_LIBSELINUX=yes | 8887 HAVE_LIBSELINUX=yes |
13116 else | 8888 else |
13117 HAVE_LIBSELINUX=no | 8889 HAVE_LIBSELINUX=no |
13118 fi | 8890 fi |
13119 | 8891 |
13120 if test "$HAVE_LIBSELINUX" = yes; then | 8892 if test "$HAVE_LIBSELINUX" = yes; then |
13121 | 8893 |
13122 cat >>confdefs.h <<\_ACEOF | 8894 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h |
13123 #define HAVE_LIBSELINUX 1 | |
13124 _ACEOF | |
13125 | 8895 |
13126 LIBSELINUX_LIBS=-lselinux | 8896 LIBSELINUX_LIBS=-lselinux |
13127 fi | 8897 fi |
13128 fi | 8898 fi |
13129 | 8899 |
13130 | 8900 |
13131 HAVE_XAW3D=no | 8901 HAVE_XAW3D=no |
13132 LUCID_LIBW= | 8902 LUCID_LIBW= |
13133 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then | 8903 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then |
13134 if test "$with_xaw3d" != no; then | 8904 if test "$with_xaw3d" != no; then |
13135 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5 | 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5 |
13136 $as_echo_n "checking for xaw3d... " >&6; } | 8906 $as_echo_n "checking for xaw3d... " >&6; } |
13137 if test "${emacs_cv_xaw3d+set}" = set; then | 8907 if test "${emacs_cv_xaw3d+set}" = set; then : |
13138 $as_echo_n "(cached) " >&6 | 8908 $as_echo_n "(cached) " >&6 |
13139 else | 8909 else |
13140 cat >conftest.$ac_ext <<_ACEOF | 8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13141 /* confdefs.h. */ | |
13142 _ACEOF | |
13143 cat confdefs.h >>conftest.$ac_ext | |
13144 cat >>conftest.$ac_ext <<_ACEOF | |
13145 /* end confdefs.h. */ | 8911 /* end confdefs.h. */ |
13146 | 8912 |
13147 #include <X11/Intrinsic.h> | 8913 #include <X11/Intrinsic.h> |
13148 #include <X11/Xaw3d/Simple.h> | 8914 #include <X11/Xaw3d/Simple.h> |
13149 int | 8915 int |
13152 | 8918 |
13153 ; | 8919 ; |
13154 return 0; | 8920 return 0; |
13155 } | 8921 } |
13156 _ACEOF | 8922 _ACEOF |
13157 rm -f conftest.$ac_objext conftest$ac_exeext | 8923 if ac_fn_c_try_link "$LINENO"; then : |
13158 if { (ac_try="$ac_link" | |
13159 case "(($ac_try" in | |
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13161 *) ac_try_echo=$ac_try;; | |
13162 esac | |
13163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13164 $as_echo "$ac_try_echo") >&5 | |
13165 (eval "$ac_link") 2>conftest.er1 | |
13166 ac_status=$? | |
13167 grep -v '^ *+' conftest.er1 >conftest.err | |
13168 rm -f conftest.er1 | |
13169 cat conftest.err >&5 | |
13170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13171 (exit $ac_status); } && { | |
13172 test -z "$ac_c_werror_flag" || | |
13173 test ! -s conftest.err | |
13174 } && test -s conftest$ac_exeext && { | |
13175 test "$cross_compiling" = yes || | |
13176 $as_test_x conftest$ac_exeext | |
13177 }; then | |
13178 emacs_cv_xaw3d=yes | 8924 emacs_cv_xaw3d=yes |
13179 else | 8925 else |
13180 $as_echo "$as_me: failed program was:" >&5 | 8926 emacs_cv_xaw3d=no |
13181 sed 's/^/| /' conftest.$ac_ext >&5 | 8927 fi |
13182 | 8928 rm -f core conftest.err conftest.$ac_objext \ |
13183 emacs_cv_xaw3d=no | 8929 conftest$ac_exeext conftest.$ac_ext |
13184 fi | |
13185 | |
13186 rm -rf conftest.dSYM | |
13187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13188 conftest$ac_exeext conftest.$ac_ext | |
13189 fi | 8930 fi |
13190 | 8931 |
13191 else | 8932 else |
13192 emacs_cv_xaw3d=no | 8933 emacs_cv_xaw3d=no |
13193 fi | 8934 fi |
13194 if test $emacs_cv_xaw3d = yes; then | 8935 if test $emacs_cv_xaw3d = yes; then |
13195 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 | 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 |
13196 $as_echo "yes; using Lucid toolkit" >&6; } | 8937 $as_echo "yes; using Lucid toolkit" >&6; } |
13197 USE_X_TOOLKIT=LUCID | 8938 USE_X_TOOLKIT=LUCID |
13198 HAVE_XAW3D=yes | 8939 HAVE_XAW3D=yes |
13199 LUCID_LIBW=-lXaw3d | 8940 LUCID_LIBW=-lXaw3d |
13200 | 8941 |
13201 cat >>confdefs.h <<\_ACEOF | 8942 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h |
13202 #define HAVE_XAW3D 1 | |
13203 _ACEOF | |
13204 | 8943 |
13205 else | 8944 else |
13206 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13207 $as_echo "no" >&6; } | 8946 $as_echo "no" >&6; } |
13208 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5 | 8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5 |
13209 $as_echo_n "checking for libXaw... " >&6; } | 8948 $as_echo_n "checking for libXaw... " >&6; } |
13210 if test "${emacs_cv_xaw+set}" = set; then | 8949 if test "${emacs_cv_xaw+set}" = set; then : |
13211 $as_echo_n "(cached) " >&6 | 8950 $as_echo_n "(cached) " >&6 |
13212 else | 8951 else |
13213 cat >conftest.$ac_ext <<_ACEOF | 8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13214 /* confdefs.h. */ | |
13215 _ACEOF | |
13216 cat confdefs.h >>conftest.$ac_ext | |
13217 cat >>conftest.$ac_ext <<_ACEOF | |
13218 /* end confdefs.h. */ | 8953 /* end confdefs.h. */ |
13219 | 8954 |
13220 #include <X11/Intrinsic.h> | 8955 #include <X11/Intrinsic.h> |
13221 #include <X11/Xaw/Simple.h> | 8956 #include <X11/Xaw/Simple.h> |
13222 int | 8957 int |
13225 | 8960 |
13226 ; | 8961 ; |
13227 return 0; | 8962 return 0; |
13228 } | 8963 } |
13229 _ACEOF | 8964 _ACEOF |
13230 rm -f conftest.$ac_objext conftest$ac_exeext | 8965 if ac_fn_c_try_link "$LINENO"; then : |
13231 if { (ac_try="$ac_link" | |
13232 case "(($ac_try" in | |
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13234 *) ac_try_echo=$ac_try;; | |
13235 esac | |
13236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13237 $as_echo "$ac_try_echo") >&5 | |
13238 (eval "$ac_link") 2>conftest.er1 | |
13239 ac_status=$? | |
13240 grep -v '^ *+' conftest.er1 >conftest.err | |
13241 rm -f conftest.er1 | |
13242 cat conftest.err >&5 | |
13243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13244 (exit $ac_status); } && { | |
13245 test -z "$ac_c_werror_flag" || | |
13246 test ! -s conftest.err | |
13247 } && test -s conftest$ac_exeext && { | |
13248 test "$cross_compiling" = yes || | |
13249 $as_test_x conftest$ac_exeext | |
13250 }; then | |
13251 emacs_cv_xaw=yes | 8966 emacs_cv_xaw=yes |
13252 else | 8967 else |
13253 $as_echo "$as_me: failed program was:" >&5 | 8968 emacs_cv_xaw=no |
13254 sed 's/^/| /' conftest.$ac_ext >&5 | 8969 fi |
13255 | 8970 rm -f core conftest.err conftest.$ac_objext \ |
13256 emacs_cv_xaw=no | 8971 conftest$ac_exeext conftest.$ac_ext |
13257 fi | |
13258 | |
13259 rm -rf conftest.dSYM | |
13260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13261 conftest$ac_exeext conftest.$ac_ext | |
13262 fi | 8972 fi |
13263 | 8973 |
13264 if test $emacs_cv_xaw = yes; then | 8974 if test $emacs_cv_xaw = yes; then |
13265 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 | 8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 |
13266 $as_echo "yes; using Lucid toolkit" >&6; } | 8976 $as_echo "yes; using Lucid toolkit" >&6; } |
13267 USE_X_TOOLKIT=LUCID | 8977 USE_X_TOOLKIT=LUCID |
13268 LUCID_LIBW=-lXaw | 8978 LUCID_LIBW=-lXaw |
13269 elif test x"${USE_X_TOOLKIT}" = xLUCID; then | 8979 elif test x"${USE_X_TOOLKIT}" = xLUCID; then |
13270 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5 | 8980 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 |
13271 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;} | |
13272 { (exit 1); exit 1; }; } | |
13273 else | 8981 else |
13274 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5 | 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 |
13275 $as_echo "no; do not use toolkit by default" >&6; } | 8983 $as_echo "no; do not use toolkit by default" >&6; } |
13276 USE_X_TOOLKIT=none | 8984 USE_X_TOOLKIT=none |
13277 fi | 8985 fi |
13278 fi | 8986 fi |
13279 fi | 8987 fi |
13280 | 8988 |
13281 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | 8989 X_TOOLKIT_TYPE=$USE_X_TOOLKIT |
13282 | 8990 |
13283 LIBXTR6= | 8991 LIBXTR6= |
13284 if test "${USE_X_TOOLKIT}" != "none"; then | 8992 if test "${USE_X_TOOLKIT}" != "none"; then |
13285 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5 | 8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5 |
13286 $as_echo_n "checking X11 toolkit version... " >&6; } | 8994 $as_echo_n "checking X11 toolkit version... " >&6; } |
13287 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | 8995 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then : |
13288 $as_echo_n "(cached) " >&6 | 8996 $as_echo_n "(cached) " >&6 |
13289 else | 8997 else |
13290 cat >conftest.$ac_ext <<_ACEOF | 8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13291 /* confdefs.h. */ | |
13292 _ACEOF | |
13293 cat confdefs.h >>conftest.$ac_ext | |
13294 cat >>conftest.$ac_ext <<_ACEOF | |
13295 /* end confdefs.h. */ | 8999 /* end confdefs.h. */ |
13296 #include <X11/Intrinsic.h> | 9000 #include <X11/Intrinsic.h> |
13297 int | 9001 int |
13298 main () | 9002 main () |
13299 { | 9003 { |
13303 | 9007 |
13304 ; | 9008 ; |
13305 return 0; | 9009 return 0; |
13306 } | 9010 } |
13307 _ACEOF | 9011 _ACEOF |
13308 rm -f conftest.$ac_objext conftest$ac_exeext | 9012 if ac_fn_c_try_link "$LINENO"; then : |
13309 if { (ac_try="$ac_link" | |
13310 case "(($ac_try" in | |
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13312 *) ac_try_echo=$ac_try;; | |
13313 esac | |
13314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13315 $as_echo "$ac_try_echo") >&5 | |
13316 (eval "$ac_link") 2>conftest.er1 | |
13317 ac_status=$? | |
13318 grep -v '^ *+' conftest.er1 >conftest.err | |
13319 rm -f conftest.er1 | |
13320 cat conftest.err >&5 | |
13321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13322 (exit $ac_status); } && { | |
13323 test -z "$ac_c_werror_flag" || | |
13324 test ! -s conftest.err | |
13325 } && test -s conftest$ac_exeext && { | |
13326 test "$cross_compiling" = yes || | |
13327 $as_test_x conftest$ac_exeext | |
13328 }; then | |
13329 emacs_cv_x11_toolkit_version_6=yes | 9013 emacs_cv_x11_toolkit_version_6=yes |
13330 else | 9014 else |
13331 $as_echo "$as_me: failed program was:" >&5 | 9015 emacs_cv_x11_toolkit_version_6=no |
13332 sed 's/^/| /' conftest.$ac_ext >&5 | 9016 fi |
13333 | 9017 rm -f core conftest.err conftest.$ac_objext \ |
13334 emacs_cv_x11_toolkit_version_6=no | 9018 conftest$ac_exeext conftest.$ac_ext |
13335 fi | |
13336 | |
13337 rm -rf conftest.dSYM | |
13338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13339 conftest$ac_exeext conftest.$ac_ext | |
13340 fi | 9019 fi |
13341 | 9020 |
13342 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | 9021 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 |
13343 if test $emacs_cv_x11_toolkit_version_6 = yes; then | 9022 if test $emacs_cv_x11_toolkit_version_6 = yes; then |
13344 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5 | 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 |
13345 $as_echo "6 or newer" >&6; } | 9024 $as_echo "6 or newer" >&6; } |
13346 | 9025 |
13347 cat >>confdefs.h <<\_ACEOF | 9026 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h |
13348 #define HAVE_X11XTR6 1 | |
13349 _ACEOF | |
13350 | 9027 |
13351 LIBXTR6="-lSM -lICE" | 9028 LIBXTR6="-lSM -lICE" |
13352 case "$opsys" in | 9029 case "$opsys" in |
13353 ## Use libw.a along with X11R6 Xt. | 9030 ## Use libw.a along with X11R6 Xt. |
13354 unixware) LIBXTR6="$LIBXTR6 -lw" ;; | 9031 unixware) LIBXTR6="$LIBXTR6 -lw" ;; |
13355 esac | 9032 esac |
13356 else | 9033 else |
13357 { $as_echo "$as_me:$LINENO: result: before 6" >&5 | 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 |
13358 $as_echo "before 6" >&6; } | 9035 $as_echo "before 6" >&6; } |
13359 fi | 9036 fi |
13360 | 9037 |
13361 OLDLIBS="$LIBS" | 9038 OLDLIBS="$LIBS" |
13362 if test x$HAVE_X11XTR6 = xyes; then | 9039 if test x$HAVE_X11XTR6 = xyes; then |
13363 LIBS="-lXt -lSM -lICE $LIBS" | 9040 LIBS="-lXt -lSM -lICE $LIBS" |
13364 else | 9041 else |
13365 LIBS="-lXt $LIBS" | 9042 LIBS="-lXt $LIBS" |
13366 fi | 9043 fi |
13367 | 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5 |
13368 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 | |
13369 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } | 9045 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } |
13370 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | 9046 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then : |
13371 $as_echo_n "(cached) " >&6 | 9047 $as_echo_n "(cached) " >&6 |
13372 else | 9048 else |
13373 ac_check_lib_save_LIBS=$LIBS | 9049 ac_check_lib_save_LIBS=$LIBS |
13374 LIBS="-lXmu $LIBS" | 9050 LIBS="-lXmu $LIBS" |
13375 cat >conftest.$ac_ext <<_ACEOF | 9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13376 /* confdefs.h. */ | |
13377 _ACEOF | |
13378 cat confdefs.h >>conftest.$ac_ext | |
13379 cat >>conftest.$ac_ext <<_ACEOF | |
13380 /* end confdefs.h. */ | 9052 /* end confdefs.h. */ |
13381 | 9053 |
13382 /* Override any GCC internal prototype to avoid an error. | 9054 /* Override any GCC internal prototype to avoid an error. |
13383 Use char because int might match the return type of a GCC | 9055 Use char because int might match the return type of a GCC |
13384 builtin and then its argument prototype would still apply. */ | 9056 builtin and then its argument prototype would still apply. */ |
13392 return XmuConvertStandardSelection (); | 9064 return XmuConvertStandardSelection (); |
13393 ; | 9065 ; |
13394 return 0; | 9066 return 0; |
13395 } | 9067 } |
13396 _ACEOF | 9068 _ACEOF |
13397 rm -f conftest.$ac_objext conftest$ac_exeext | 9069 if ac_fn_c_try_link "$LINENO"; then : |
13398 if { (ac_try="$ac_link" | |
13399 case "(($ac_try" in | |
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13401 *) ac_try_echo=$ac_try;; | |
13402 esac | |
13403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13404 $as_echo "$ac_try_echo") >&5 | |
13405 (eval "$ac_link") 2>conftest.er1 | |
13406 ac_status=$? | |
13407 grep -v '^ *+' conftest.er1 >conftest.err | |
13408 rm -f conftest.er1 | |
13409 cat conftest.err >&5 | |
13410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13411 (exit $ac_status); } && { | |
13412 test -z "$ac_c_werror_flag" || | |
13413 test ! -s conftest.err | |
13414 } && test -s conftest$ac_exeext && { | |
13415 test "$cross_compiling" = yes || | |
13416 $as_test_x conftest$ac_exeext | |
13417 }; then | |
13418 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | 9070 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes |
13419 else | 9071 else |
13420 $as_echo "$as_me: failed program was:" >&5 | 9072 ac_cv_lib_Xmu_XmuConvertStandardSelection=no |
13421 sed 's/^/| /' conftest.$ac_ext >&5 | 9073 fi |
13422 | 9074 rm -f core conftest.err conftest.$ac_objext \ |
13423 ac_cv_lib_Xmu_XmuConvertStandardSelection=no | 9075 conftest$ac_exeext conftest.$ac_ext |
13424 fi | |
13425 | |
13426 rm -rf conftest.dSYM | |
13427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13428 conftest$ac_exeext conftest.$ac_ext | |
13429 LIBS=$ac_check_lib_save_LIBS | 9076 LIBS=$ac_check_lib_save_LIBS |
13430 fi | 9077 fi |
13431 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 | 9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
13432 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } | 9079 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } |
13433 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | 9080 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then : |
13434 cat >>confdefs.h <<_ACEOF | 9081 cat >>confdefs.h <<_ACEOF |
13435 #define HAVE_LIBXMU 1 | 9082 #define HAVE_LIBXMU 1 |
13436 _ACEOF | 9083 _ACEOF |
13437 | 9084 |
13438 LIBS="-lXmu $LIBS" | 9085 LIBS="-lXmu $LIBS" |
13453 | 9100 |
13454 | 9101 |
13455 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | 9102 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. |
13456 if test "${HAVE_X11}" = "yes"; then | 9103 if test "${HAVE_X11}" = "yes"; then |
13457 if test "${USE_X_TOOLKIT}" != "none"; then | 9104 if test "${USE_X_TOOLKIT}" != "none"; then |
13458 | 9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 |
13459 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
13460 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } | 9106 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } |
13461 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | 9107 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : |
13462 $as_echo_n "(cached) " >&6 | 9108 $as_echo_n "(cached) " >&6 |
13463 else | 9109 else |
13464 ac_check_lib_save_LIBS=$LIBS | 9110 ac_check_lib_save_LIBS=$LIBS |
13465 LIBS="-lXext $LIBS" | 9111 LIBS="-lXext $LIBS" |
13466 cat >conftest.$ac_ext <<_ACEOF | 9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13467 /* confdefs.h. */ | |
13468 _ACEOF | |
13469 cat confdefs.h >>conftest.$ac_ext | |
13470 cat >>conftest.$ac_ext <<_ACEOF | |
13471 /* end confdefs.h. */ | 9113 /* end confdefs.h. */ |
13472 | 9114 |
13473 /* Override any GCC internal prototype to avoid an error. | 9115 /* Override any GCC internal prototype to avoid an error. |
13474 Use char because int might match the return type of a GCC | 9116 Use char because int might match the return type of a GCC |
13475 builtin and then its argument prototype would still apply. */ | 9117 builtin and then its argument prototype would still apply. */ |
13483 return XShapeQueryExtension (); | 9125 return XShapeQueryExtension (); |
13484 ; | 9126 ; |
13485 return 0; | 9127 return 0; |
13486 } | 9128 } |
13487 _ACEOF | 9129 _ACEOF |
13488 rm -f conftest.$ac_objext conftest$ac_exeext | 9130 if ac_fn_c_try_link "$LINENO"; then : |
13489 if { (ac_try="$ac_link" | |
13490 case "(($ac_try" in | |
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13492 *) ac_try_echo=$ac_try;; | |
13493 esac | |
13494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13495 $as_echo "$ac_try_echo") >&5 | |
13496 (eval "$ac_link") 2>conftest.er1 | |
13497 ac_status=$? | |
13498 grep -v '^ *+' conftest.er1 >conftest.err | |
13499 rm -f conftest.er1 | |
13500 cat conftest.err >&5 | |
13501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13502 (exit $ac_status); } && { | |
13503 test -z "$ac_c_werror_flag" || | |
13504 test ! -s conftest.err | |
13505 } && test -s conftest$ac_exeext && { | |
13506 test "$cross_compiling" = yes || | |
13507 $as_test_x conftest$ac_exeext | |
13508 }; then | |
13509 ac_cv_lib_Xext_XShapeQueryExtension=yes | 9131 ac_cv_lib_Xext_XShapeQueryExtension=yes |
13510 else | 9132 else |
13511 $as_echo "$as_me: failed program was:" >&5 | 9133 ac_cv_lib_Xext_XShapeQueryExtension=no |
13512 sed 's/^/| /' conftest.$ac_ext >&5 | 9134 fi |
13513 | 9135 rm -f core conftest.err conftest.$ac_objext \ |
13514 ac_cv_lib_Xext_XShapeQueryExtension=no | 9136 conftest$ac_exeext conftest.$ac_ext |
13515 fi | |
13516 | |
13517 rm -rf conftest.dSYM | |
13518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13519 conftest$ac_exeext conftest.$ac_ext | |
13520 LIBS=$ac_check_lib_save_LIBS | 9137 LIBS=$ac_check_lib_save_LIBS |
13521 fi | 9138 fi |
13522 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | 9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
13523 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } | 9140 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
13524 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | 9141 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : |
13525 cat >>confdefs.h <<_ACEOF | 9142 cat >>confdefs.h <<_ACEOF |
13526 #define HAVE_LIBXEXT 1 | 9143 #define HAVE_LIBXEXT 1 |
13527 _ACEOF | 9144 _ACEOF |
13528 | 9145 |
13529 LIBS="-lXext $LIBS" | 9146 LIBS="-lXext $LIBS" |
13533 fi | 9150 fi |
13534 fi | 9151 fi |
13535 | 9152 |
13536 LIBXP= | 9153 LIBXP= |
13537 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | 9154 if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
13538 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 | 9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5 |
13539 $as_echo_n "checking for Motif version 2.1... " >&6; } | 9156 $as_echo_n "checking for Motif version 2.1... " >&6; } |
13540 if test "${emacs_cv_motif_version_2_1+set}" = set; then | 9157 if test "${emacs_cv_motif_version_2_1+set}" = set; then : |
13541 $as_echo_n "(cached) " >&6 | 9158 $as_echo_n "(cached) " >&6 |
13542 else | 9159 else |
13543 cat >conftest.$ac_ext <<_ACEOF | 9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13544 /* confdefs.h. */ | |
13545 _ACEOF | |
13546 cat confdefs.h >>conftest.$ac_ext | |
13547 cat >>conftest.$ac_ext <<_ACEOF | |
13548 /* end confdefs.h. */ | 9161 /* end confdefs.h. */ |
13549 #include <Xm/Xm.h> | 9162 #include <Xm/Xm.h> |
13550 int | 9163 int |
13551 main () | 9164 main () |
13552 { | 9165 { |
13557 #endif | 9170 #endif |
13558 ; | 9171 ; |
13559 return 0; | 9172 return 0; |
13560 } | 9173 } |
13561 _ACEOF | 9174 _ACEOF |
13562 rm -f conftest.$ac_objext | 9175 if ac_fn_c_try_compile "$LINENO"; then : |
13563 if { (ac_try="$ac_compile" | |
13564 case "(($ac_try" in | |
13565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13566 *) ac_try_echo=$ac_try;; | |
13567 esac | |
13568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13569 $as_echo "$ac_try_echo") >&5 | |
13570 (eval "$ac_compile") 2>conftest.er1 | |
13571 ac_status=$? | |
13572 grep -v '^ *+' conftest.er1 >conftest.err | |
13573 rm -f conftest.er1 | |
13574 cat conftest.err >&5 | |
13575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13576 (exit $ac_status); } && { | |
13577 test -z "$ac_c_werror_flag" || | |
13578 test ! -s conftest.err | |
13579 } && test -s conftest.$ac_objext; then | |
13580 emacs_cv_motif_version_2_1=yes | 9176 emacs_cv_motif_version_2_1=yes |
13581 else | 9177 else |
13582 $as_echo "$as_me: failed program was:" >&5 | 9178 emacs_cv_motif_version_2_1=no |
13583 sed 's/^/| /' conftest.$ac_ext >&5 | 9179 fi |
13584 | |
13585 emacs_cv_motif_version_2_1=no | |
13586 fi | |
13587 | |
13588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 9180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13589 fi | 9181 fi |
13590 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 | 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5 |
13591 $as_echo "$emacs_cv_motif_version_2_1" >&6; } | 9183 $as_echo "$emacs_cv_motif_version_2_1" >&6; } |
13592 if test $emacs_cv_motif_version_2_1 = yes; then | 9184 if test $emacs_cv_motif_version_2_1 = yes; then |
13593 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 | 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5 |
13594 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; } | 9186 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; } |
13595 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | 9187 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then : |
13596 $as_echo_n "(cached) " >&6 | 9188 $as_echo_n "(cached) " >&6 |
13597 else | 9189 else |
13598 ac_check_lib_save_LIBS=$LIBS | 9190 ac_check_lib_save_LIBS=$LIBS |
13599 LIBS="-lXp $LIBS" | 9191 LIBS="-lXp $LIBS" |
13600 cat >conftest.$ac_ext <<_ACEOF | 9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13601 /* confdefs.h. */ | |
13602 _ACEOF | |
13603 cat confdefs.h >>conftest.$ac_ext | |
13604 cat >>conftest.$ac_ext <<_ACEOF | |
13605 /* end confdefs.h. */ | 9193 /* end confdefs.h. */ |
13606 | 9194 |
13607 /* Override any GCC internal prototype to avoid an error. | 9195 /* Override any GCC internal prototype to avoid an error. |
13608 Use char because int might match the return type of a GCC | 9196 Use char because int might match the return type of a GCC |
13609 builtin and then its argument prototype would still apply. */ | 9197 builtin and then its argument prototype would still apply. */ |
13617 return XpCreateContext (); | 9205 return XpCreateContext (); |
13618 ; | 9206 ; |
13619 return 0; | 9207 return 0; |
13620 } | 9208 } |
13621 _ACEOF | 9209 _ACEOF |
13622 rm -f conftest.$ac_objext conftest$ac_exeext | 9210 if ac_fn_c_try_link "$LINENO"; then : |
13623 if { (ac_try="$ac_link" | |
13624 case "(($ac_try" in | |
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13626 *) ac_try_echo=$ac_try;; | |
13627 esac | |
13628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13629 $as_echo "$ac_try_echo") >&5 | |
13630 (eval "$ac_link") 2>conftest.er1 | |
13631 ac_status=$? | |
13632 grep -v '^ *+' conftest.er1 >conftest.err | |
13633 rm -f conftest.er1 | |
13634 cat conftest.err >&5 | |
13635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13636 (exit $ac_status); } && { | |
13637 test -z "$ac_c_werror_flag" || | |
13638 test ! -s conftest.err | |
13639 } && test -s conftest$ac_exeext && { | |
13640 test "$cross_compiling" = yes || | |
13641 $as_test_x conftest$ac_exeext | |
13642 }; then | |
13643 ac_cv_lib_Xp_XpCreateContext=yes | 9211 ac_cv_lib_Xp_XpCreateContext=yes |
13644 else | 9212 else |
13645 $as_echo "$as_me: failed program was:" >&5 | 9213 ac_cv_lib_Xp_XpCreateContext=no |
13646 sed 's/^/| /' conftest.$ac_ext >&5 | 9214 fi |
13647 | 9215 rm -f core conftest.err conftest.$ac_objext \ |
13648 ac_cv_lib_Xp_XpCreateContext=no | 9216 conftest$ac_exeext conftest.$ac_ext |
13649 fi | |
13650 | |
13651 rm -rf conftest.dSYM | |
13652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13653 conftest$ac_exeext conftest.$ac_ext | |
13654 LIBS=$ac_check_lib_save_LIBS | 9217 LIBS=$ac_check_lib_save_LIBS |
13655 fi | 9218 fi |
13656 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 | 9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
13657 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } | 9220 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } |
13658 if test $ac_cv_lib_Xp_XpCreateContext = yes; then | 9221 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then : |
13659 LIBXP=-lXp | 9222 LIBXP=-lXp |
13660 fi | 9223 fi |
13661 | 9224 |
13662 else | 9225 else |
13663 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 | 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5 |
13664 $as_echo_n "checking for LessTif where some systems put it... " >&6; } | 9227 $as_echo_n "checking for LessTif where some systems put it... " >&6; } |
13665 if test "${emacs_cv_lesstif+set}" = set; then | 9228 if test "${emacs_cv_lesstif+set}" = set; then : |
13666 $as_echo_n "(cached) " >&6 | 9229 $as_echo_n "(cached) " >&6 |
13667 else | 9230 else |
13668 # We put this in CFLAGS temporarily to precede other -I options | 9231 # We put this in CFLAGS temporarily to precede other -I options |
13669 # that might be in CFLAGS temporarily. | 9232 # that might be in CFLAGS temporarily. |
13670 # We put this in CPPFLAGS where it precedes the other -I options. | 9233 # We put this in CPPFLAGS where it precedes the other -I options. |
13671 OLD_CPPFLAGS=$CPPFLAGS | 9234 OLD_CPPFLAGS=$CPPFLAGS |
13672 OLD_CFLAGS=$CFLAGS | 9235 OLD_CFLAGS=$CFLAGS |
13673 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | 9236 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" |
13674 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | 9237 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" |
13675 cat >conftest.$ac_ext <<_ACEOF | 9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13676 /* confdefs.h. */ | |
13677 _ACEOF | |
13678 cat confdefs.h >>conftest.$ac_ext | |
13679 cat >>conftest.$ac_ext <<_ACEOF | |
13680 /* end confdefs.h. */ | 9239 /* end confdefs.h. */ |
13681 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> | 9240 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> |
13682 int | 9241 int |
13683 main () | 9242 main () |
13684 { | 9243 { |
13685 int x = 5; | 9244 int x = 5; |
13686 ; | 9245 ; |
13687 return 0; | 9246 return 0; |
13688 } | 9247 } |
13689 _ACEOF | 9248 _ACEOF |
13690 rm -f conftest.$ac_objext | 9249 if ac_fn_c_try_compile "$LINENO"; then : |
13691 if { (ac_try="$ac_compile" | |
13692 case "(($ac_try" in | |
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13694 *) ac_try_echo=$ac_try;; | |
13695 esac | |
13696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13697 $as_echo "$ac_try_echo") >&5 | |
13698 (eval "$ac_compile") 2>conftest.er1 | |
13699 ac_status=$? | |
13700 grep -v '^ *+' conftest.er1 >conftest.err | |
13701 rm -f conftest.er1 | |
13702 cat conftest.err >&5 | |
13703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13704 (exit $ac_status); } && { | |
13705 test -z "$ac_c_werror_flag" || | |
13706 test ! -s conftest.err | |
13707 } && test -s conftest.$ac_objext; then | |
13708 emacs_cv_lesstif=yes | 9250 emacs_cv_lesstif=yes |
13709 else | 9251 else |
13710 $as_echo "$as_me: failed program was:" >&5 | 9252 emacs_cv_lesstif=no |
13711 sed 's/^/| /' conftest.$ac_ext >&5 | 9253 fi |
13712 | |
13713 emacs_cv_lesstif=no | |
13714 fi | |
13715 | |
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 9254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13717 fi | 9255 fi |
13718 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 | 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5 |
13719 $as_echo "$emacs_cv_lesstif" >&6; } | 9257 $as_echo "$emacs_cv_lesstif" >&6; } |
13720 if test $emacs_cv_lesstif = yes; then | 9258 if test $emacs_cv_lesstif = yes; then |
13721 # Make sure this -I option remains in CPPFLAGS after it is set | 9259 # Make sure this -I option remains in CPPFLAGS after it is set |
13722 # back to REAL_CPPFLAGS. | 9260 # back to REAL_CPPFLAGS. |
13723 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | 9261 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not |
13731 fi | 9269 fi |
13732 fi | 9270 fi |
13733 fi | 9271 fi |
13734 | 9272 |
13735 | 9273 |
13736 | |
13737 USE_TOOLKIT_SCROLL_BARS=no | 9274 USE_TOOLKIT_SCROLL_BARS=no |
13738 if test "${with_toolkit_scroll_bars}" != "no"; then | 9275 if test "${with_toolkit_scroll_bars}" != "no"; then |
13739 if test "${USE_X_TOOLKIT}" != "none"; then | 9276 if test "${USE_X_TOOLKIT}" != "none"; then |
13740 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | 9277 if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
13741 cat >>confdefs.h <<\_ACEOF | 9278 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
13742 #define USE_TOOLKIT_SCROLL_BARS 1 | |
13743 _ACEOF | |
13744 | 9279 |
13745 HAVE_XAW3D=no | 9280 HAVE_XAW3D=no |
13746 USE_TOOLKIT_SCROLL_BARS=yes | 9281 USE_TOOLKIT_SCROLL_BARS=yes |
13747 elif test "${HAVE_XAW3D}" = "yes"; then | 9282 elif test "${HAVE_XAW3D}" = "yes"; then |
13748 cat >>confdefs.h <<\_ACEOF | 9283 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
13749 #define USE_TOOLKIT_SCROLL_BARS 1 | |
13750 _ACEOF | |
13751 | 9284 |
13752 USE_TOOLKIT_SCROLL_BARS=yes | 9285 USE_TOOLKIT_SCROLL_BARS=yes |
13753 fi | 9286 fi |
13754 elif test "${HAVE_GTK}" = "yes"; then | 9287 elif test "${HAVE_GTK}" = "yes"; then |
13755 cat >>confdefs.h <<\_ACEOF | 9288 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
13756 #define USE_TOOLKIT_SCROLL_BARS 1 | |
13757 _ACEOF | |
13758 | 9289 |
13759 USE_TOOLKIT_SCROLL_BARS=yes | 9290 USE_TOOLKIT_SCROLL_BARS=yes |
13760 elif test "${HAVE_NS}" = "yes"; then | 9291 elif test "${HAVE_NS}" = "yes"; then |
13761 cat >>confdefs.h <<\_ACEOF | 9292 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
13762 #define USE_TOOLKIT_SCROLL_BARS 1 | |
13763 _ACEOF | |
13764 | 9293 |
13765 USE_TOOLKIT_SCROLL_BARS=yes | 9294 USE_TOOLKIT_SCROLL_BARS=yes |
13766 fi | 9295 fi |
13767 fi | 9296 fi |
13768 | 9297 |
13769 cat >conftest.$ac_ext <<_ACEOF | 9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13770 /* confdefs.h. */ | |
13771 _ACEOF | |
13772 cat confdefs.h >>conftest.$ac_ext | |
13773 cat >>conftest.$ac_ext <<_ACEOF | |
13774 /* end confdefs.h. */ | 9299 /* end confdefs.h. */ |
13775 | 9300 |
13776 #include <X11/Xlib.h> | 9301 #include <X11/Xlib.h> |
13777 #include <X11/Xresource.h> | 9302 #include <X11/Xresource.h> |
13778 int | 9303 int |
13781 XIMProc callback; | 9306 XIMProc callback; |
13782 ; | 9307 ; |
13783 return 0; | 9308 return 0; |
13784 } | 9309 } |
13785 _ACEOF | 9310 _ACEOF |
13786 rm -f conftest.$ac_objext | 9311 if ac_fn_c_try_compile "$LINENO"; then : |
13787 if { (ac_try="$ac_compile" | |
13788 case "(($ac_try" in | |
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13790 *) ac_try_echo=$ac_try;; | |
13791 esac | |
13792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13793 $as_echo "$ac_try_echo") >&5 | |
13794 (eval "$ac_compile") 2>conftest.er1 | |
13795 ac_status=$? | |
13796 grep -v '^ *+' conftest.er1 >conftest.err | |
13797 rm -f conftest.er1 | |
13798 cat conftest.err >&5 | |
13799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13800 (exit $ac_status); } && { | |
13801 test -z "$ac_c_werror_flag" || | |
13802 test ! -s conftest.err | |
13803 } && test -s conftest.$ac_objext; then | |
13804 HAVE_XIM=yes | 9312 HAVE_XIM=yes |
13805 | 9313 |
13806 cat >>confdefs.h <<\_ACEOF | 9314 $as_echo "#define HAVE_XIM 1" >>confdefs.h |
13807 #define HAVE_XIM 1 | 9315 |
13808 _ACEOF | 9316 else |
13809 | 9317 HAVE_XIM=no |
13810 else | 9318 fi |
13811 $as_echo "$as_me: failed program was:" >&5 | |
13812 sed 's/^/| /' conftest.$ac_ext >&5 | |
13813 | |
13814 HAVE_XIM=no | |
13815 fi | |
13816 | |
13817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 9319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13818 | 9320 |
13819 | 9321 |
13820 if test "${with_xim}" != "no"; then | 9322 if test "${with_xim}" != "no"; then |
13821 | 9323 |
13822 cat >>confdefs.h <<\_ACEOF | 9324 $as_echo "#define USE_XIM 1" >>confdefs.h |
13823 #define USE_XIM 1 | |
13824 _ACEOF | |
13825 | 9325 |
13826 fi | 9326 fi |
13827 | 9327 |
13828 | 9328 |
13829 if test "${HAVE_XIM}" != "no"; then | 9329 if test "${HAVE_XIM}" != "no"; then |
13830 late_CFLAGS=$CFLAGS | 9330 late_CFLAGS=$CFLAGS |
13831 if test "$GCC" = yes; then | 9331 if test "$GCC" = yes; then |
13832 CFLAGS="$CFLAGS --pedantic-errors" | 9332 CFLAGS="$CFLAGS --pedantic-errors" |
13833 fi | 9333 fi |
13834 cat >conftest.$ac_ext <<_ACEOF | 9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13835 /* confdefs.h. */ | |
13836 _ACEOF | |
13837 cat confdefs.h >>conftest.$ac_ext | |
13838 cat >>conftest.$ac_ext <<_ACEOF | |
13839 /* end confdefs.h. */ | 9335 /* end confdefs.h. */ |
13840 | 9336 |
13841 #include <X11/Xlib.h> | 9337 #include <X11/Xlib.h> |
13842 #include <X11/Xresource.h> | 9338 #include <X11/Xresource.h> |
13843 int | 9339 int |
13859 client_data); | 9355 client_data); |
13860 ; | 9356 ; |
13861 return 0; | 9357 return 0; |
13862 } | 9358 } |
13863 _ACEOF | 9359 _ACEOF |
13864 rm -f conftest.$ac_objext | 9360 if ac_fn_c_try_compile "$LINENO"; then : |
13865 if { (ac_try="$ac_compile" | |
13866 case "(($ac_try" in | |
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13868 *) ac_try_echo=$ac_try;; | |
13869 esac | |
13870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13871 $as_echo "$ac_try_echo") >&5 | |
13872 (eval "$ac_compile") 2>conftest.er1 | |
13873 ac_status=$? | |
13874 grep -v '^ *+' conftest.er1 >conftest.err | |
13875 rm -f conftest.er1 | |
13876 cat conftest.err >&5 | |
13877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13878 (exit $ac_status); } && { | |
13879 test -z "$ac_c_werror_flag" || | |
13880 test ! -s conftest.err | |
13881 } && test -s conftest.$ac_objext; then | |
13882 emacs_cv_arg6_star=yes | 9361 emacs_cv_arg6_star=yes |
13883 else | 9362 fi |
13884 $as_echo "$as_me: failed program was:" >&5 | |
13885 sed 's/^/| /' conftest.$ac_ext >&5 | |
13886 | |
13887 | |
13888 fi | |
13889 | |
13890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 9363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13891 | 9364 if test "$emacs_cv_arg6_star" = yes; then |
13892 if test "$emacs_cv_arg6_star" = yes; then | 9365 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h |
13893 cat >>confdefs.h <<\_ACEOF | |
13894 #define XRegisterIMInstantiateCallback_arg6 XPointer* | |
13895 _ACEOF | |
13896 | 9366 |
13897 else | 9367 else |
13898 cat >>confdefs.h <<\_ACEOF | 9368 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h |
13899 #define XRegisterIMInstantiateCallback_arg6 XPointer | |
13900 _ACEOF | |
13901 | 9369 |
13902 fi | 9370 fi |
13903 CFLAGS=$late_CFLAGS | 9371 CFLAGS=$late_CFLAGS |
13904 fi | 9372 fi |
13905 | 9373 |
13912 | 9380 |
13913 succeeded=no | 9381 succeeded=no |
13914 | 9382 |
13915 # Extract the first word of "pkg-config", so it can be a program name with args. | 9383 # Extract the first word of "pkg-config", so it can be a program name with args. |
13916 set dummy pkg-config; ac_word=$2 | 9384 set dummy pkg-config; ac_word=$2 |
13917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13918 $as_echo_n "checking for $ac_word... " >&6; } | 9386 $as_echo_n "checking for $ac_word... " >&6; } |
13919 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 9387 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
13920 $as_echo_n "(cached) " >&6 | 9388 $as_echo_n "(cached) " >&6 |
13921 else | 9389 else |
13922 case $PKG_CONFIG in | 9390 case $PKG_CONFIG in |
13923 [\\/]* | ?:[\\/]*) | 9391 [\\/]* | ?:[\\/]*) |
13924 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 9392 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 9395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13928 for as_dir in $PATH | 9396 for as_dir in $PATH |
13929 do | 9397 do |
13930 IFS=$as_save_IFS | 9398 IFS=$as_save_IFS |
13931 test -z "$as_dir" && as_dir=. | 9399 test -z "$as_dir" && as_dir=. |
13932 for ac_exec_ext in '' $ac_executable_extensions; do | 9400 for ac_exec_ext in '' $ac_executable_extensions; do |
13933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 9401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
13934 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 9402 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
13935 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 9403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13936 break 2 | 9404 break 2 |
13937 fi | 9405 fi |
13938 done | 9406 done |
13939 done | 9407 done |
13940 IFS=$as_save_IFS | 9408 IFS=$as_save_IFS |
13941 | 9409 |
13942 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 9410 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13943 ;; | 9411 ;; |
13944 esac | 9412 esac |
13945 fi | 9413 fi |
13946 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 9414 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
13947 if test -n "$PKG_CONFIG"; then | 9415 if test -n "$PKG_CONFIG"; then |
13948 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
13949 $as_echo "$PKG_CONFIG" >&6; } | 9417 $as_echo "$PKG_CONFIG" >&6; } |
13950 else | 9418 else |
13951 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13952 $as_echo "no" >&6; } | 9420 $as_echo "no" >&6; } |
13953 fi | 9421 fi |
13954 | 9422 |
13955 | 9423 |
13956 | 9424 |
13957 if test "$PKG_CONFIG" = "no" ; then | 9425 if test "$PKG_CONFIG" = "no" ; then |
13958 HAVE_FC=no | 9426 HAVE_FC=no |
13959 else | 9427 else |
13960 PKG_CONFIG_MIN_VERSION=0.9.0 | 9428 PKG_CONFIG_MIN_VERSION=0.9.0 |
13961 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 9429 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
13962 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5 | 9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5 |
13963 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } | 9431 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } |
13964 | 9432 |
13965 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then | 9433 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then |
13966 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13967 $as_echo "yes" >&6; } | 9435 $as_echo "yes" >&6; } |
13968 succeeded=yes | 9436 succeeded=yes |
13969 | 9437 |
13970 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5 | 9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5 |
13971 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } | 9439 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } |
13972 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` | 9440 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` |
13973 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5 | 9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5 |
13974 $as_echo "$FONTCONFIG_CFLAGS" >&6; } | 9442 $as_echo "$FONTCONFIG_CFLAGS" >&6; } |
13975 | 9443 |
13976 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5 | 9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5 |
13977 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; } | 9445 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; } |
13978 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` | 9446 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` |
13979 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5 | 9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5 |
13980 $as_echo "$FONTCONFIG_LIBS" >&6; } | 9448 $as_echo "$FONTCONFIG_LIBS" >&6; } |
13981 else | 9449 else |
13982 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13983 $as_echo "no" >&6; } | 9451 $as_echo "no" >&6; } |
13984 FONTCONFIG_CFLAGS="" | 9452 FONTCONFIG_CFLAGS="" |
13985 FONTCONFIG_LIBS="" | 9453 FONTCONFIG_LIBS="" |
13986 ## If we have a custom action on failure, don't print errors, but | 9454 ## If we have a custom action on failure, don't print errors, but |
13987 ## do set a variable so people can do so. | 9455 ## do set a variable so people can do so. |
14014 | 9482 |
14015 succeeded=no | 9483 succeeded=no |
14016 | 9484 |
14017 # Extract the first word of "pkg-config", so it can be a program name with args. | 9485 # Extract the first word of "pkg-config", so it can be a program name with args. |
14018 set dummy pkg-config; ac_word=$2 | 9486 set dummy pkg-config; ac_word=$2 |
14019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14020 $as_echo_n "checking for $ac_word... " >&6; } | 9488 $as_echo_n "checking for $ac_word... " >&6; } |
14021 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 9489 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
14022 $as_echo_n "(cached) " >&6 | 9490 $as_echo_n "(cached) " >&6 |
14023 else | 9491 else |
14024 case $PKG_CONFIG in | 9492 case $PKG_CONFIG in |
14025 [\\/]* | ?:[\\/]*) | 9493 [\\/]* | ?:[\\/]*) |
14026 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 9494 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
14029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14030 for as_dir in $PATH | 9498 for as_dir in $PATH |
14031 do | 9499 do |
14032 IFS=$as_save_IFS | 9500 IFS=$as_save_IFS |
14033 test -z "$as_dir" && as_dir=. | 9501 test -z "$as_dir" && as_dir=. |
14034 for ac_exec_ext in '' $ac_executable_extensions; do | 9502 for ac_exec_ext in '' $ac_executable_extensions; do |
14035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 9503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
14036 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 9504 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
14037 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 9505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14038 break 2 | 9506 break 2 |
14039 fi | 9507 fi |
14040 done | 9508 done |
14041 done | 9509 done |
14042 IFS=$as_save_IFS | 9510 IFS=$as_save_IFS |
14043 | 9511 |
14044 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 9512 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
14045 ;; | 9513 ;; |
14046 esac | 9514 esac |
14047 fi | 9515 fi |
14048 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 9516 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
14049 if test -n "$PKG_CONFIG"; then | 9517 if test -n "$PKG_CONFIG"; then |
14050 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
14051 $as_echo "$PKG_CONFIG" >&6; } | 9519 $as_echo "$PKG_CONFIG" >&6; } |
14052 else | 9520 else |
14053 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14054 $as_echo "no" >&6; } | 9522 $as_echo "no" >&6; } |
14055 fi | 9523 fi |
14056 | 9524 |
14057 | 9525 |
14058 | 9526 |
14059 if test "$PKG_CONFIG" = "no" ; then | 9527 if test "$PKG_CONFIG" = "no" ; then |
14060 HAVE_XFT=no | 9528 HAVE_XFT=no |
14061 else | 9529 else |
14062 PKG_CONFIG_MIN_VERSION=0.9.0 | 9530 PKG_CONFIG_MIN_VERSION=0.9.0 |
14063 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 9531 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
14064 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5 | 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5 |
14065 $as_echo_n "checking for xft >= 0.13.0... " >&6; } | 9533 $as_echo_n "checking for xft >= 0.13.0... " >&6; } |
14066 | 9534 |
14067 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then | 9535 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then |
14068 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14069 $as_echo "yes" >&6; } | 9537 $as_echo "yes" >&6; } |
14070 succeeded=yes | 9538 succeeded=yes |
14071 | 9539 |
14072 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5 | 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5 |
14073 $as_echo_n "checking XFT_CFLAGS... " >&6; } | 9541 $as_echo_n "checking XFT_CFLAGS... " >&6; } |
14074 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` | 9542 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` |
14075 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5 | 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5 |
14076 $as_echo "$XFT_CFLAGS" >&6; } | 9544 $as_echo "$XFT_CFLAGS" >&6; } |
14077 | 9545 |
14078 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5 | 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5 |
14079 $as_echo_n "checking XFT_LIBS... " >&6; } | 9547 $as_echo_n "checking XFT_LIBS... " >&6; } |
14080 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` | 9548 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` |
14081 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5 | 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5 |
14082 $as_echo "$XFT_LIBS" >&6; } | 9550 $as_echo "$XFT_LIBS" >&6; } |
14083 else | 9551 else |
14084 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14085 $as_echo "no" >&6; } | 9553 $as_echo "no" >&6; } |
14086 XFT_CFLAGS="" | 9554 XFT_CFLAGS="" |
14087 XFT_LIBS="" | 9555 XFT_LIBS="" |
14088 ## If we have a custom action on failure, don't print errors, but | 9556 ## If we have a custom action on failure, don't print errors, but |
14089 ## do set a variable so people can do so. | 9557 ## do set a variable so people can do so. |
14106 fi | 9574 fi |
14107 | 9575 |
14108 ## Because xftfont.c uses XRenderQueryExtension, we also | 9576 ## Because xftfont.c uses XRenderQueryExtension, we also |
14109 ## need to link to -lXrender. | 9577 ## need to link to -lXrender. |
14110 HAVE_XRENDER=no | 9578 HAVE_XRENDER=no |
14111 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5 | 9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5 |
14112 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } | 9580 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } |
14113 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then | 9581 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then : |
14114 $as_echo_n "(cached) " >&6 | 9582 $as_echo_n "(cached) " >&6 |
14115 else | 9583 else |
14116 ac_check_lib_save_LIBS=$LIBS | 9584 ac_check_lib_save_LIBS=$LIBS |
14117 LIBS="-lXrender $LIBS" | 9585 LIBS="-lXrender $LIBS" |
14118 cat >conftest.$ac_ext <<_ACEOF | 9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14119 /* confdefs.h. */ | |
14120 _ACEOF | |
14121 cat confdefs.h >>conftest.$ac_ext | |
14122 cat >>conftest.$ac_ext <<_ACEOF | |
14123 /* end confdefs.h. */ | 9587 /* end confdefs.h. */ |
14124 | 9588 |
14125 /* Override any GCC internal prototype to avoid an error. | 9589 /* Override any GCC internal prototype to avoid an error. |
14126 Use char because int might match the return type of a GCC | 9590 Use char because int might match the return type of a GCC |
14127 builtin and then its argument prototype would still apply. */ | 9591 builtin and then its argument prototype would still apply. */ |
14135 return XRenderQueryExtension (); | 9599 return XRenderQueryExtension (); |
14136 ; | 9600 ; |
14137 return 0; | 9601 return 0; |
14138 } | 9602 } |
14139 _ACEOF | 9603 _ACEOF |
14140 rm -f conftest.$ac_objext conftest$ac_exeext | 9604 if ac_fn_c_try_link "$LINENO"; then : |
14141 if { (ac_try="$ac_link" | |
14142 case "(($ac_try" in | |
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14144 *) ac_try_echo=$ac_try;; | |
14145 esac | |
14146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14147 $as_echo "$ac_try_echo") >&5 | |
14148 (eval "$ac_link") 2>conftest.er1 | |
14149 ac_status=$? | |
14150 grep -v '^ *+' conftest.er1 >conftest.err | |
14151 rm -f conftest.er1 | |
14152 cat conftest.err >&5 | |
14153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14154 (exit $ac_status); } && { | |
14155 test -z "$ac_c_werror_flag" || | |
14156 test ! -s conftest.err | |
14157 } && test -s conftest$ac_exeext && { | |
14158 test "$cross_compiling" = yes || | |
14159 $as_test_x conftest$ac_exeext | |
14160 }; then | |
14161 ac_cv_lib_Xrender_XRenderQueryExtension=yes | 9605 ac_cv_lib_Xrender_XRenderQueryExtension=yes |
14162 else | 9606 else |
14163 $as_echo "$as_me: failed program was:" >&5 | 9607 ac_cv_lib_Xrender_XRenderQueryExtension=no |
14164 sed 's/^/| /' conftest.$ac_ext >&5 | 9608 fi |
14165 | 9609 rm -f core conftest.err conftest.$ac_objext \ |
14166 ac_cv_lib_Xrender_XRenderQueryExtension=no | 9610 conftest$ac_exeext conftest.$ac_ext |
14167 fi | |
14168 | |
14169 rm -rf conftest.dSYM | |
14170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14171 conftest$ac_exeext conftest.$ac_ext | |
14172 LIBS=$ac_check_lib_save_LIBS | 9611 LIBS=$ac_check_lib_save_LIBS |
14173 fi | 9612 fi |
14174 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 | 9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 |
14175 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } | 9614 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } |
14176 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then | 9615 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then : |
14177 HAVE_XRENDER=yes | 9616 HAVE_XRENDER=yes |
14178 fi | 9617 fi |
14179 | 9618 |
14180 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then | 9619 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then |
14181 OLD_CPPFLAGS="$CPPFLAGS" | 9620 OLD_CPPFLAGS="$CPPFLAGS" |
14183 OLD_LIBS="$LIBS" | 9622 OLD_LIBS="$LIBS" |
14184 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" | 9623 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" |
14185 CFLAGS="$CFLAGS $XFT_CFLAGS" | 9624 CFLAGS="$CFLAGS $XFT_CFLAGS" |
14186 XFT_LIBS="-lXrender $XFT_LIBS" | 9625 XFT_LIBS="-lXrender $XFT_LIBS" |
14187 LIBS="$XFT_LIBS $LIBS" | 9626 LIBS="$XFT_LIBS $LIBS" |
14188 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | 9627 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" |
14189 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 | 9628 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : |
14190 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; } | 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 |
14191 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
14192 $as_echo_n "(cached) " >&6 | |
14193 fi | |
14194 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 | |
14195 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; } | |
14196 else | |
14197 # Is the header compilable? | |
14198 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5 | |
14199 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; } | |
14200 cat >conftest.$ac_ext <<_ACEOF | |
14201 /* confdefs.h. */ | |
14202 _ACEOF | |
14203 cat confdefs.h >>conftest.$ac_ext | |
14204 cat >>conftest.$ac_ext <<_ACEOF | |
14205 /* end confdefs.h. */ | |
14206 $ac_includes_default | |
14207 #include <X11/Xft/Xft.h> | |
14208 _ACEOF | |
14209 rm -f conftest.$ac_objext | |
14210 if { (ac_try="$ac_compile" | |
14211 case "(($ac_try" in | |
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14213 *) ac_try_echo=$ac_try;; | |
14214 esac | |
14215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14216 $as_echo "$ac_try_echo") >&5 | |
14217 (eval "$ac_compile") 2>conftest.er1 | |
14218 ac_status=$? | |
14219 grep -v '^ *+' conftest.er1 >conftest.err | |
14220 rm -f conftest.er1 | |
14221 cat conftest.err >&5 | |
14222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14223 (exit $ac_status); } && { | |
14224 test -z "$ac_c_werror_flag" || | |
14225 test ! -s conftest.err | |
14226 } && test -s conftest.$ac_objext; then | |
14227 ac_header_compiler=yes | |
14228 else | |
14229 $as_echo "$as_me: failed program was:" >&5 | |
14230 sed 's/^/| /' conftest.$ac_ext >&5 | |
14231 | |
14232 ac_header_compiler=no | |
14233 fi | |
14234 | |
14235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14236 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14237 $as_echo "$ac_header_compiler" >&6; } | |
14238 | |
14239 # Is the header present? | |
14240 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5 | |
14241 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; } | |
14242 cat >conftest.$ac_ext <<_ACEOF | |
14243 /* confdefs.h. */ | |
14244 _ACEOF | |
14245 cat confdefs.h >>conftest.$ac_ext | |
14246 cat >>conftest.$ac_ext <<_ACEOF | |
14247 /* end confdefs.h. */ | |
14248 #include <X11/Xft/Xft.h> | |
14249 _ACEOF | |
14250 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14251 case "(($ac_try" in | |
14252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14253 *) ac_try_echo=$ac_try;; | |
14254 esac | |
14255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14256 $as_echo "$ac_try_echo") >&5 | |
14257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14258 ac_status=$? | |
14259 grep -v '^ *+' conftest.er1 >conftest.err | |
14260 rm -f conftest.er1 | |
14261 cat conftest.err >&5 | |
14262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14263 (exit $ac_status); } >/dev/null && { | |
14264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14265 test ! -s conftest.err | |
14266 }; then | |
14267 ac_header_preproc=yes | |
14268 else | |
14269 $as_echo "$as_me: failed program was:" >&5 | |
14270 sed 's/^/| /' conftest.$ac_ext >&5 | |
14271 | |
14272 ac_header_preproc=no | |
14273 fi | |
14274 | |
14275 rm -f conftest.err conftest.$ac_ext | |
14276 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14277 $as_echo "$ac_header_preproc" >&6; } | |
14278 | |
14279 # So? What about this header? | |
14280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14281 yes:no: ) | |
14282 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14283 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14284 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5 | |
14285 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;} | |
14286 ac_header_preproc=yes | |
14287 ;; | |
14288 no:yes:* ) | |
14289 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5 | |
14290 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;} | |
14291 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5 | |
14292 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;} | |
14293 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5 | |
14294 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;} | |
14295 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14296 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14297 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5 | |
14298 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;} | |
14299 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5 | |
14300 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;} | |
14301 | |
14302 ;; | |
14303 esac | |
14304 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 | |
14305 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; } | |
14306 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
14307 $as_echo_n "(cached) " >&6 | |
14308 else | |
14309 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc | |
14310 fi | |
14311 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 | |
14312 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; } | |
14313 | |
14314 fi | |
14315 if test $ac_cv_header_X11_Xft_Xft_h = yes; then | |
14316 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5 | |
14317 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; } | 9630 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; } |
14318 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then | 9631 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then : |
14319 $as_echo_n "(cached) " >&6 | 9632 $as_echo_n "(cached) " >&6 |
14320 else | 9633 else |
14321 ac_check_lib_save_LIBS=$LIBS | 9634 ac_check_lib_save_LIBS=$LIBS |
14322 LIBS="-lXft $XFT_LIBS $LIBS" | 9635 LIBS="-lXft $XFT_LIBS $LIBS" |
14323 cat >conftest.$ac_ext <<_ACEOF | 9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14324 /* confdefs.h. */ | |
14325 _ACEOF | |
14326 cat confdefs.h >>conftest.$ac_ext | |
14327 cat >>conftest.$ac_ext <<_ACEOF | |
14328 /* end confdefs.h. */ | 9637 /* end confdefs.h. */ |
14329 | 9638 |
14330 /* Override any GCC internal prototype to avoid an error. | 9639 /* Override any GCC internal prototype to avoid an error. |
14331 Use char because int might match the return type of a GCC | 9640 Use char because int might match the return type of a GCC |
14332 builtin and then its argument prototype would still apply. */ | 9641 builtin and then its argument prototype would still apply. */ |
14340 return XftFontOpen (); | 9649 return XftFontOpen (); |
14341 ; | 9650 ; |
14342 return 0; | 9651 return 0; |
14343 } | 9652 } |
14344 _ACEOF | 9653 _ACEOF |
14345 rm -f conftest.$ac_objext conftest$ac_exeext | 9654 if ac_fn_c_try_link "$LINENO"; then : |
14346 if { (ac_try="$ac_link" | |
14347 case "(($ac_try" in | |
14348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14349 *) ac_try_echo=$ac_try;; | |
14350 esac | |
14351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14352 $as_echo "$ac_try_echo") >&5 | |
14353 (eval "$ac_link") 2>conftest.er1 | |
14354 ac_status=$? | |
14355 grep -v '^ *+' conftest.er1 >conftest.err | |
14356 rm -f conftest.er1 | |
14357 cat conftest.err >&5 | |
14358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14359 (exit $ac_status); } && { | |
14360 test -z "$ac_c_werror_flag" || | |
14361 test ! -s conftest.err | |
14362 } && test -s conftest$ac_exeext && { | |
14363 test "$cross_compiling" = yes || | |
14364 $as_test_x conftest$ac_exeext | |
14365 }; then | |
14366 ac_cv_lib_Xft_XftFontOpen=yes | 9655 ac_cv_lib_Xft_XftFontOpen=yes |
14367 else | 9656 else |
14368 $as_echo "$as_me: failed program was:" >&5 | 9657 ac_cv_lib_Xft_XftFontOpen=no |
14369 sed 's/^/| /' conftest.$ac_ext >&5 | 9658 fi |
14370 | 9659 rm -f core conftest.err conftest.$ac_objext \ |
14371 ac_cv_lib_Xft_XftFontOpen=no | 9660 conftest$ac_exeext conftest.$ac_ext |
14372 fi | |
14373 | |
14374 rm -rf conftest.dSYM | |
14375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14376 conftest$ac_exeext conftest.$ac_ext | |
14377 LIBS=$ac_check_lib_save_LIBS | 9661 LIBS=$ac_check_lib_save_LIBS |
14378 fi | 9662 fi |
14379 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5 | 9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 |
14380 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } | 9664 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } |
14381 if test $ac_cv_lib_Xft_XftFontOpen = yes; then | 9665 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then : |
14382 HAVE_XFT=yes | 9666 HAVE_XFT=yes |
14383 fi | 9667 fi |
14384 | 9668 |
14385 fi | 9669 fi |
14386 | 9670 |
14387 | 9671 |
14388 | 9672 |
14389 if test "${HAVE_XFT}" = "yes"; then | 9673 if test "${HAVE_XFT}" = "yes"; then |
14390 | 9674 |
14391 cat >>confdefs.h <<\_ACEOF | 9675 $as_echo "#define HAVE_XFT 1" >>confdefs.h |
14392 #define HAVE_XFT 1 | |
14393 _ACEOF | |
14394 | 9676 |
14395 | 9677 |
14396 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" | 9678 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" |
14397 else | 9679 else |
14398 CPPFLAGS="$OLD_CPPFLAGS" | 9680 CPPFLAGS="$OLD_CPPFLAGS" |
14417 fi | 9699 fi |
14418 | 9700 |
14419 HAVE_LIBOTF=no | 9701 HAVE_LIBOTF=no |
14420 if test "${HAVE_FREETYPE}" = "yes"; then | 9702 if test "${HAVE_FREETYPE}" = "yes"; then |
14421 | 9703 |
14422 cat >>confdefs.h <<\_ACEOF | 9704 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h |
14423 #define HAVE_FREETYPE 1 | |
14424 _ACEOF | |
14425 | 9705 |
14426 if test "${with_libotf}" != "no"; then | 9706 if test "${with_libotf}" != "no"; then |
14427 | 9707 |
14428 succeeded=no | 9708 succeeded=no |
14429 | 9709 |
14430 # Extract the first word of "pkg-config", so it can be a program name with args. | 9710 # Extract the first word of "pkg-config", so it can be a program name with args. |
14431 set dummy pkg-config; ac_word=$2 | 9711 set dummy pkg-config; ac_word=$2 |
14432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14433 $as_echo_n "checking for $ac_word... " >&6; } | 9713 $as_echo_n "checking for $ac_word... " >&6; } |
14434 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 9714 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
14435 $as_echo_n "(cached) " >&6 | 9715 $as_echo_n "(cached) " >&6 |
14436 else | 9716 else |
14437 case $PKG_CONFIG in | 9717 case $PKG_CONFIG in |
14438 [\\/]* | ?:[\\/]*) | 9718 [\\/]* | ?:[\\/]*) |
14439 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 9719 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
14442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14443 for as_dir in $PATH | 9723 for as_dir in $PATH |
14444 do | 9724 do |
14445 IFS=$as_save_IFS | 9725 IFS=$as_save_IFS |
14446 test -z "$as_dir" && as_dir=. | 9726 test -z "$as_dir" && as_dir=. |
14447 for ac_exec_ext in '' $ac_executable_extensions; do | 9727 for ac_exec_ext in '' $ac_executable_extensions; do |
14448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 9728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
14449 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 9729 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
14450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 9730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14451 break 2 | 9731 break 2 |
14452 fi | 9732 fi |
14453 done | 9733 done |
14454 done | 9734 done |
14455 IFS=$as_save_IFS | 9735 IFS=$as_save_IFS |
14456 | 9736 |
14457 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 9737 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
14458 ;; | 9738 ;; |
14459 esac | 9739 esac |
14460 fi | 9740 fi |
14461 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 9741 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
14462 if test -n "$PKG_CONFIG"; then | 9742 if test -n "$PKG_CONFIG"; then |
14463 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
14464 $as_echo "$PKG_CONFIG" >&6; } | 9744 $as_echo "$PKG_CONFIG" >&6; } |
14465 else | 9745 else |
14466 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14467 $as_echo "no" >&6; } | 9747 $as_echo "no" >&6; } |
14468 fi | 9748 fi |
14469 | 9749 |
14470 | 9750 |
14471 | 9751 |
14472 if test "$PKG_CONFIG" = "no" ; then | 9752 if test "$PKG_CONFIG" = "no" ; then |
14473 HAVE_LIBOTF=no | 9753 HAVE_LIBOTF=no |
14474 else | 9754 else |
14475 PKG_CONFIG_MIN_VERSION=0.9.0 | 9755 PKG_CONFIG_MIN_VERSION=0.9.0 |
14476 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 9756 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
14477 { $as_echo "$as_me:$LINENO: checking for libotf" >&5 | 9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5 |
14478 $as_echo_n "checking for libotf... " >&6; } | 9758 $as_echo_n "checking for libotf... " >&6; } |
14479 | 9759 |
14480 if $PKG_CONFIG --exists "libotf" 2>&5; then | 9760 if $PKG_CONFIG --exists "libotf" 2>&5; then |
14481 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14482 $as_echo "yes" >&6; } | 9762 $as_echo "yes" >&6; } |
14483 succeeded=yes | 9763 succeeded=yes |
14484 | 9764 |
14485 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5 | 9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5 |
14486 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; } | 9766 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; } |
14487 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` | 9767 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` |
14488 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5 | 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5 |
14489 $as_echo "$LIBOTF_CFLAGS" >&6; } | 9769 $as_echo "$LIBOTF_CFLAGS" >&6; } |
14490 | 9770 |
14491 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5 | 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5 |
14492 $as_echo_n "checking LIBOTF_LIBS... " >&6; } | 9772 $as_echo_n "checking LIBOTF_LIBS... " >&6; } |
14493 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` | 9773 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` |
14494 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5 | 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5 |
14495 $as_echo "$LIBOTF_LIBS" >&6; } | 9775 $as_echo "$LIBOTF_LIBS" >&6; } |
14496 else | 9776 else |
14497 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14498 $as_echo "no" >&6; } | 9778 $as_echo "no" >&6; } |
14499 LIBOTF_CFLAGS="" | 9779 LIBOTF_CFLAGS="" |
14500 LIBOTF_LIBS="" | 9780 LIBOTF_LIBS="" |
14501 ## If we have a custom action on failure, don't print errors, but | 9781 ## If we have a custom action on failure, don't print errors, but |
14502 ## do set a variable so people can do so. | 9782 ## do set a variable so people can do so. |
14518 HAVE_LIBOTF=no | 9798 HAVE_LIBOTF=no |
14519 fi | 9799 fi |
14520 | 9800 |
14521 if test "$HAVE_LIBOTF" = "yes"; then | 9801 if test "$HAVE_LIBOTF" = "yes"; then |
14522 | 9802 |
14523 cat >>confdefs.h <<\_ACEOF | 9803 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h |
14524 #define HAVE_LIBOTF 1 | 9804 |
14525 _ACEOF | 9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5 |
14526 | |
14527 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5 | |
14528 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } | 9806 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } |
14529 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then | 9807 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then : |
14530 $as_echo_n "(cached) " >&6 | 9808 $as_echo_n "(cached) " >&6 |
14531 else | 9809 else |
14532 ac_check_lib_save_LIBS=$LIBS | 9810 ac_check_lib_save_LIBS=$LIBS |
14533 LIBS="-lotf $LIBS" | 9811 LIBS="-lotf $LIBS" |
14534 cat >conftest.$ac_ext <<_ACEOF | 9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14535 /* confdefs.h. */ | |
14536 _ACEOF | |
14537 cat confdefs.h >>conftest.$ac_ext | |
14538 cat >>conftest.$ac_ext <<_ACEOF | |
14539 /* end confdefs.h. */ | 9813 /* end confdefs.h. */ |
14540 | 9814 |
14541 /* Override any GCC internal prototype to avoid an error. | 9815 /* Override any GCC internal prototype to avoid an error. |
14542 Use char because int might match the return type of a GCC | 9816 Use char because int might match the return type of a GCC |
14543 builtin and then its argument prototype would still apply. */ | 9817 builtin and then its argument prototype would still apply. */ |
14551 return OTF_get_variation_glyphs (); | 9825 return OTF_get_variation_glyphs (); |
14552 ; | 9826 ; |
14553 return 0; | 9827 return 0; |
14554 } | 9828 } |
14555 _ACEOF | 9829 _ACEOF |
14556 rm -f conftest.$ac_objext conftest$ac_exeext | 9830 if ac_fn_c_try_link "$LINENO"; then : |
14557 if { (ac_try="$ac_link" | |
14558 case "(($ac_try" in | |
14559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14560 *) ac_try_echo=$ac_try;; | |
14561 esac | |
14562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14563 $as_echo "$ac_try_echo") >&5 | |
14564 (eval "$ac_link") 2>conftest.er1 | |
14565 ac_status=$? | |
14566 grep -v '^ *+' conftest.er1 >conftest.err | |
14567 rm -f conftest.er1 | |
14568 cat conftest.err >&5 | |
14569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14570 (exit $ac_status); } && { | |
14571 test -z "$ac_c_werror_flag" || | |
14572 test ! -s conftest.err | |
14573 } && test -s conftest$ac_exeext && { | |
14574 test "$cross_compiling" = yes || | |
14575 $as_test_x conftest$ac_exeext | |
14576 }; then | |
14577 ac_cv_lib_otf_OTF_get_variation_glyphs=yes | 9831 ac_cv_lib_otf_OTF_get_variation_glyphs=yes |
14578 else | 9832 else |
14579 $as_echo "$as_me: failed program was:" >&5 | 9833 ac_cv_lib_otf_OTF_get_variation_glyphs=no |
14580 sed 's/^/| /' conftest.$ac_ext >&5 | 9834 fi |
14581 | 9835 rm -f core conftest.err conftest.$ac_objext \ |
14582 ac_cv_lib_otf_OTF_get_variation_glyphs=no | 9836 conftest$ac_exeext conftest.$ac_ext |
14583 fi | |
14584 | |
14585 rm -rf conftest.dSYM | |
14586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14587 conftest$ac_exeext conftest.$ac_ext | |
14588 LIBS=$ac_check_lib_save_LIBS | 9837 LIBS=$ac_check_lib_save_LIBS |
14589 fi | 9838 fi |
14590 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 | 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 |
14591 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } | 9840 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } |
14592 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then | 9841 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then : |
14593 HAVE_OTF_GET_VARIATION_GLYPHS=yes | 9842 HAVE_OTF_GET_VARIATION_GLYPHS=yes |
14594 else | 9843 else |
14595 HAVE_OTF_GET_VARIATION_GLYPHS=no | 9844 HAVE_OTF_GET_VARIATION_GLYPHS=no |
14596 fi | 9845 fi |
14597 | 9846 |
14598 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then | 9847 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then |
14599 | 9848 |
14600 cat >>confdefs.h <<\_ACEOF | 9849 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h |
14601 #define HAVE_OTF_GET_VARIATION_GLYPHS 1 | |
14602 _ACEOF | |
14603 | 9850 |
14604 fi | 9851 fi |
14605 fi | 9852 fi |
14606 fi | 9853 fi |
14607 fi | 9854 fi |
14612 | 9859 |
14613 succeeded=no | 9860 succeeded=no |
14614 | 9861 |
14615 # Extract the first word of "pkg-config", so it can be a program name with args. | 9862 # Extract the first word of "pkg-config", so it can be a program name with args. |
14616 set dummy pkg-config; ac_word=$2 | 9863 set dummy pkg-config; ac_word=$2 |
14617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14618 $as_echo_n "checking for $ac_word... " >&6; } | 9865 $as_echo_n "checking for $ac_word... " >&6; } |
14619 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 9866 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
14620 $as_echo_n "(cached) " >&6 | 9867 $as_echo_n "(cached) " >&6 |
14621 else | 9868 else |
14622 case $PKG_CONFIG in | 9869 case $PKG_CONFIG in |
14623 [\\/]* | ?:[\\/]*) | 9870 [\\/]* | ?:[\\/]*) |
14624 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 9871 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
14627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 9874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14628 for as_dir in $PATH | 9875 for as_dir in $PATH |
14629 do | 9876 do |
14630 IFS=$as_save_IFS | 9877 IFS=$as_save_IFS |
14631 test -z "$as_dir" && as_dir=. | 9878 test -z "$as_dir" && as_dir=. |
14632 for ac_exec_ext in '' $ac_executable_extensions; do | 9879 for ac_exec_ext in '' $ac_executable_extensions; do |
14633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 9880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
14634 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 9881 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
14635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14636 break 2 | 9883 break 2 |
14637 fi | 9884 fi |
14638 done | 9885 done |
14639 done | 9886 done |
14640 IFS=$as_save_IFS | 9887 IFS=$as_save_IFS |
14641 | 9888 |
14642 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 9889 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
14643 ;; | 9890 ;; |
14644 esac | 9891 esac |
14645 fi | 9892 fi |
14646 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 9893 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
14647 if test -n "$PKG_CONFIG"; then | 9894 if test -n "$PKG_CONFIG"; then |
14648 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
14649 $as_echo "$PKG_CONFIG" >&6; } | 9896 $as_echo "$PKG_CONFIG" >&6; } |
14650 else | 9897 else |
14651 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14652 $as_echo "no" >&6; } | 9899 $as_echo "no" >&6; } |
14653 fi | 9900 fi |
14654 | 9901 |
14655 | 9902 |
14656 | 9903 |
14657 if test "$PKG_CONFIG" = "no" ; then | 9904 if test "$PKG_CONFIG" = "no" ; then |
14658 HAVE_M17N_FLT=no | 9905 HAVE_M17N_FLT=no |
14659 else | 9906 else |
14660 PKG_CONFIG_MIN_VERSION=0.9.0 | 9907 PKG_CONFIG_MIN_VERSION=0.9.0 |
14661 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 9908 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
14662 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5 | 9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5 |
14663 $as_echo_n "checking for m17n-flt... " >&6; } | 9910 $as_echo_n "checking for m17n-flt... " >&6; } |
14664 | 9911 |
14665 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then | 9912 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then |
14666 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14667 $as_echo "yes" >&6; } | 9914 $as_echo "yes" >&6; } |
14668 succeeded=yes | 9915 succeeded=yes |
14669 | 9916 |
14670 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5 | 9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5 |
14671 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } | 9918 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } |
14672 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` | 9919 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` |
14673 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5 | 9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5 |
14674 $as_echo "$M17N_FLT_CFLAGS" >&6; } | 9921 $as_echo "$M17N_FLT_CFLAGS" >&6; } |
14675 | 9922 |
14676 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5 | 9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5 |
14677 $as_echo_n "checking M17N_FLT_LIBS... " >&6; } | 9924 $as_echo_n "checking M17N_FLT_LIBS... " >&6; } |
14678 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` | 9925 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` |
14679 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5 | 9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5 |
14680 $as_echo "$M17N_FLT_LIBS" >&6; } | 9927 $as_echo "$M17N_FLT_LIBS" >&6; } |
14681 else | 9928 else |
14682 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14683 $as_echo "no" >&6; } | 9930 $as_echo "no" >&6; } |
14684 M17N_FLT_CFLAGS="" | 9931 M17N_FLT_CFLAGS="" |
14685 M17N_FLT_LIBS="" | 9932 M17N_FLT_LIBS="" |
14686 ## If we have a custom action on failure, don't print errors, but | 9933 ## If we have a custom action on failure, don't print errors, but |
14687 ## do set a variable so people can do so. | 9934 ## do set a variable so people can do so. |
14703 HAVE_M17N_FLT=no | 9950 HAVE_M17N_FLT=no |
14704 fi | 9951 fi |
14705 | 9952 |
14706 if test "$HAVE_M17N_FLT" = "yes"; then | 9953 if test "$HAVE_M17N_FLT" = "yes"; then |
14707 | 9954 |
14708 cat >>confdefs.h <<\_ACEOF | 9955 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h |
14709 #define HAVE_M17N_FLT 1 | |
14710 _ACEOF | |
14711 | 9956 |
14712 fi | 9957 fi |
14713 fi | 9958 fi |
14714 fi | 9959 fi |
14715 else | 9960 else |
14733 ### Use -lXpm if available, unless `--with-xpm=no'. | 9978 ### Use -lXpm if available, unless `--with-xpm=no'. |
14734 HAVE_XPM=no | 9979 HAVE_XPM=no |
14735 LIBXPM= | 9980 LIBXPM= |
14736 if test "${HAVE_X11}" = "yes"; then | 9981 if test "${HAVE_X11}" = "yes"; then |
14737 if test "${with_xpm}" != "no"; then | 9982 if test "${with_xpm}" != "no"; then |
14738 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | 9983 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" |
14739 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | 9984 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then : |
14740 $as_echo_n "checking for X11/xpm.h... " >&6; } | 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5 |
14741 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
14742 $as_echo_n "(cached) " >&6 | |
14743 fi | |
14744 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
14745 $as_echo "$ac_cv_header_X11_xpm_h" >&6; } | |
14746 else | |
14747 # Is the header compilable? | |
14748 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 | |
14749 $as_echo_n "checking X11/xpm.h usability... " >&6; } | |
14750 cat >conftest.$ac_ext <<_ACEOF | |
14751 /* confdefs.h. */ | |
14752 _ACEOF | |
14753 cat confdefs.h >>conftest.$ac_ext | |
14754 cat >>conftest.$ac_ext <<_ACEOF | |
14755 /* end confdefs.h. */ | |
14756 $ac_includes_default | |
14757 #include <X11/xpm.h> | |
14758 _ACEOF | |
14759 rm -f conftest.$ac_objext | |
14760 if { (ac_try="$ac_compile" | |
14761 case "(($ac_try" in | |
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14763 *) ac_try_echo=$ac_try;; | |
14764 esac | |
14765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14766 $as_echo "$ac_try_echo") >&5 | |
14767 (eval "$ac_compile") 2>conftest.er1 | |
14768 ac_status=$? | |
14769 grep -v '^ *+' conftest.er1 >conftest.err | |
14770 rm -f conftest.er1 | |
14771 cat conftest.err >&5 | |
14772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14773 (exit $ac_status); } && { | |
14774 test -z "$ac_c_werror_flag" || | |
14775 test ! -s conftest.err | |
14776 } && test -s conftest.$ac_objext; then | |
14777 ac_header_compiler=yes | |
14778 else | |
14779 $as_echo "$as_me: failed program was:" >&5 | |
14780 sed 's/^/| /' conftest.$ac_ext >&5 | |
14781 | |
14782 ac_header_compiler=no | |
14783 fi | |
14784 | |
14785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14786 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14787 $as_echo "$ac_header_compiler" >&6; } | |
14788 | |
14789 # Is the header present? | |
14790 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 | |
14791 $as_echo_n "checking X11/xpm.h presence... " >&6; } | |
14792 cat >conftest.$ac_ext <<_ACEOF | |
14793 /* confdefs.h. */ | |
14794 _ACEOF | |
14795 cat confdefs.h >>conftest.$ac_ext | |
14796 cat >>conftest.$ac_ext <<_ACEOF | |
14797 /* end confdefs.h. */ | |
14798 #include <X11/xpm.h> | |
14799 _ACEOF | |
14800 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14801 case "(($ac_try" in | |
14802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14803 *) ac_try_echo=$ac_try;; | |
14804 esac | |
14805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14806 $as_echo "$ac_try_echo") >&5 | |
14807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14808 ac_status=$? | |
14809 grep -v '^ *+' conftest.er1 >conftest.err | |
14810 rm -f conftest.er1 | |
14811 cat conftest.err >&5 | |
14812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14813 (exit $ac_status); } >/dev/null && { | |
14814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14815 test ! -s conftest.err | |
14816 }; then | |
14817 ac_header_preproc=yes | |
14818 else | |
14819 $as_echo "$as_me: failed program was:" >&5 | |
14820 sed 's/^/| /' conftest.$ac_ext >&5 | |
14821 | |
14822 ac_header_preproc=no | |
14823 fi | |
14824 | |
14825 rm -f conftest.err conftest.$ac_ext | |
14826 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14827 $as_echo "$ac_header_preproc" >&6; } | |
14828 | |
14829 # So? What about this header? | |
14830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14831 yes:no: ) | |
14832 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14833 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14834 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5 | |
14835 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;} | |
14836 ac_header_preproc=yes | |
14837 ;; | |
14838 no:yes:* ) | |
14839 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 | |
14840 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} | |
14841 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 | |
14842 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} | |
14843 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5 | |
14844 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;} | |
14845 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14846 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14847 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 | |
14848 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} | |
14849 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5 | |
14850 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;} | |
14851 | |
14852 ;; | |
14853 esac | |
14854 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
14855 $as_echo_n "checking for X11/xpm.h... " >&6; } | |
14856 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
14857 $as_echo_n "(cached) " >&6 | |
14858 else | |
14859 ac_cv_header_X11_xpm_h=$ac_header_preproc | |
14860 fi | |
14861 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
14862 $as_echo "$ac_cv_header_X11_xpm_h" >&6; } | |
14863 | |
14864 fi | |
14865 if test $ac_cv_header_X11_xpm_h = yes; then | |
14866 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 | |
14867 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } | 9986 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } |
14868 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | 9987 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then : |
14869 $as_echo_n "(cached) " >&6 | 9988 $as_echo_n "(cached) " >&6 |
14870 else | 9989 else |
14871 ac_check_lib_save_LIBS=$LIBS | 9990 ac_check_lib_save_LIBS=$LIBS |
14872 LIBS="-lXpm -lX11 $LIBS" | 9991 LIBS="-lXpm -lX11 $LIBS" |
14873 cat >conftest.$ac_ext <<_ACEOF | 9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14874 /* confdefs.h. */ | |
14875 _ACEOF | |
14876 cat confdefs.h >>conftest.$ac_ext | |
14877 cat >>conftest.$ac_ext <<_ACEOF | |
14878 /* end confdefs.h. */ | 9993 /* end confdefs.h. */ |
14879 | 9994 |
14880 /* Override any GCC internal prototype to avoid an error. | 9995 /* Override any GCC internal prototype to avoid an error. |
14881 Use char because int might match the return type of a GCC | 9996 Use char because int might match the return type of a GCC |
14882 builtin and then its argument prototype would still apply. */ | 9997 builtin and then its argument prototype would still apply. */ |
14890 return XpmReadFileToPixmap (); | 10005 return XpmReadFileToPixmap (); |
14891 ; | 10006 ; |
14892 return 0; | 10007 return 0; |
14893 } | 10008 } |
14894 _ACEOF | 10009 _ACEOF |
14895 rm -f conftest.$ac_objext conftest$ac_exeext | 10010 if ac_fn_c_try_link "$LINENO"; then : |
14896 if { (ac_try="$ac_link" | |
14897 case "(($ac_try" in | |
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14899 *) ac_try_echo=$ac_try;; | |
14900 esac | |
14901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14902 $as_echo "$ac_try_echo") >&5 | |
14903 (eval "$ac_link") 2>conftest.er1 | |
14904 ac_status=$? | |
14905 grep -v '^ *+' conftest.er1 >conftest.err | |
14906 rm -f conftest.er1 | |
14907 cat conftest.err >&5 | |
14908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14909 (exit $ac_status); } && { | |
14910 test -z "$ac_c_werror_flag" || | |
14911 test ! -s conftest.err | |
14912 } && test -s conftest$ac_exeext && { | |
14913 test "$cross_compiling" = yes || | |
14914 $as_test_x conftest$ac_exeext | |
14915 }; then | |
14916 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes | 10011 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
14917 else | 10012 else |
14918 $as_echo "$as_me: failed program was:" >&5 | 10013 ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
14919 sed 's/^/| /' conftest.$ac_ext >&5 | 10014 fi |
14920 | 10015 rm -f core conftest.err conftest.$ac_objext \ |
14921 ac_cv_lib_Xpm_XpmReadFileToPixmap=no | 10016 conftest$ac_exeext conftest.$ac_ext |
14922 fi | |
14923 | |
14924 rm -rf conftest.dSYM | |
14925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14926 conftest$ac_exeext conftest.$ac_ext | |
14927 LIBS=$ac_check_lib_save_LIBS | 10017 LIBS=$ac_check_lib_save_LIBS |
14928 fi | 10018 fi |
14929 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 | 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
14930 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } | 10020 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } |
14931 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | 10021 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then : |
14932 HAVE_XPM=yes | 10022 HAVE_XPM=yes |
14933 fi | 10023 fi |
14934 | 10024 |
14935 fi | 10025 fi |
14936 | 10026 |
14937 | 10027 |
14938 if test "${HAVE_XPM}" = "yes"; then | 10028 if test "${HAVE_XPM}" = "yes"; then |
14939 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 | 10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5 |
14940 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } | 10030 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } |
14941 cat >conftest.$ac_ext <<_ACEOF | 10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14942 /* confdefs.h. */ | |
14943 _ACEOF | |
14944 cat confdefs.h >>conftest.$ac_ext | |
14945 cat >>conftest.$ac_ext <<_ACEOF | |
14946 /* end confdefs.h. */ | 10032 /* end confdefs.h. */ |
14947 #include "X11/xpm.h" | 10033 #include "X11/xpm.h" |
14948 #ifndef XpmReturnAllocPixels | 10034 #ifndef XpmReturnAllocPixels |
14949 no_return_alloc_pixels | 10035 no_return_alloc_pixels |
14950 #endif | 10036 #endif |
14951 | 10037 |
14952 _ACEOF | 10038 _ACEOF |
14953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 10039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14954 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then | 10040 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then : |
14955 HAVE_XPM=no | 10041 HAVE_XPM=no |
14956 else | 10042 else |
14957 HAVE_XPM=yes | 10043 HAVE_XPM=yes |
14958 fi | 10044 fi |
14959 rm -f conftest* | 10045 rm -f conftest* |
14960 | 10046 |
14961 | 10047 |
14962 if test "${HAVE_XPM}" = "yes"; then | 10048 if test "${HAVE_XPM}" = "yes"; then |
14963 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14964 $as_echo "yes" >&6; } | 10050 $as_echo "yes" >&6; } |
14965 else | 10051 else |
14966 { $as_echo "$as_me:$LINENO: result: no" >&5 | 10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14967 $as_echo "no" >&6; } | 10053 $as_echo "no" >&6; } |
14968 fi | 10054 fi |
14969 fi | 10055 fi |
14970 fi | 10056 fi |
14971 | 10057 |
14972 if test "${HAVE_XPM}" = "yes"; then | 10058 if test "${HAVE_XPM}" = "yes"; then |
14973 | 10059 |
14974 cat >>confdefs.h <<\_ACEOF | 10060 $as_echo "#define HAVE_XPM 1" >>confdefs.h |
14975 #define HAVE_XPM 1 | |
14976 _ACEOF | |
14977 | 10061 |
14978 LIBXPM=-lXpm | 10062 LIBXPM=-lXpm |
14979 fi | 10063 fi |
14980 fi | 10064 fi |
14981 | 10065 |
14983 ### Use -ljpeg if available, unless `--with-jpeg=no'. | 10067 ### Use -ljpeg if available, unless `--with-jpeg=no'. |
14984 HAVE_JPEG=no | 10068 HAVE_JPEG=no |
14985 LIBJPEG= | 10069 LIBJPEG= |
14986 if test "${HAVE_X11}" = "yes"; then | 10070 if test "${HAVE_X11}" = "yes"; then |
14987 if test "${with_jpeg}" != "no"; then | 10071 if test "${with_jpeg}" != "no"; then |
14988 if test "${ac_cv_header_jerror_h+set}" = set; then | 10072 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" |
14989 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5 | 10073 if test "x$ac_cv_header_jerror_h" = x""yes; then : |
14990 $as_echo_n "checking for jerror.h... " >&6; } | 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 |
14991 if test "${ac_cv_header_jerror_h+set}" = set; then | |
14992 $as_echo_n "(cached) " >&6 | |
14993 fi | |
14994 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
14995 $as_echo "$ac_cv_header_jerror_h" >&6; } | |
14996 else | |
14997 # Is the header compilable? | |
14998 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5 | |
14999 $as_echo_n "checking jerror.h usability... " >&6; } | |
15000 cat >conftest.$ac_ext <<_ACEOF | |
15001 /* confdefs.h. */ | |
15002 _ACEOF | |
15003 cat confdefs.h >>conftest.$ac_ext | |
15004 cat >>conftest.$ac_ext <<_ACEOF | |
15005 /* end confdefs.h. */ | |
15006 $ac_includes_default | |
15007 #include <jerror.h> | |
15008 _ACEOF | |
15009 rm -f conftest.$ac_objext | |
15010 if { (ac_try="$ac_compile" | |
15011 case "(($ac_try" in | |
15012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15013 *) ac_try_echo=$ac_try;; | |
15014 esac | |
15015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15016 $as_echo "$ac_try_echo") >&5 | |
15017 (eval "$ac_compile") 2>conftest.er1 | |
15018 ac_status=$? | |
15019 grep -v '^ *+' conftest.er1 >conftest.err | |
15020 rm -f conftest.er1 | |
15021 cat conftest.err >&5 | |
15022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15023 (exit $ac_status); } && { | |
15024 test -z "$ac_c_werror_flag" || | |
15025 test ! -s conftest.err | |
15026 } && test -s conftest.$ac_objext; then | |
15027 ac_header_compiler=yes | |
15028 else | |
15029 $as_echo "$as_me: failed program was:" >&5 | |
15030 sed 's/^/| /' conftest.$ac_ext >&5 | |
15031 | |
15032 ac_header_compiler=no | |
15033 fi | |
15034 | |
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15036 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15037 $as_echo "$ac_header_compiler" >&6; } | |
15038 | |
15039 # Is the header present? | |
15040 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5 | |
15041 $as_echo_n "checking jerror.h presence... " >&6; } | |
15042 cat >conftest.$ac_ext <<_ACEOF | |
15043 /* confdefs.h. */ | |
15044 _ACEOF | |
15045 cat confdefs.h >>conftest.$ac_ext | |
15046 cat >>conftest.$ac_ext <<_ACEOF | |
15047 /* end confdefs.h. */ | |
15048 #include <jerror.h> | |
15049 _ACEOF | |
15050 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15051 case "(($ac_try" in | |
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15053 *) ac_try_echo=$ac_try;; | |
15054 esac | |
15055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15056 $as_echo "$ac_try_echo") >&5 | |
15057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15058 ac_status=$? | |
15059 grep -v '^ *+' conftest.er1 >conftest.err | |
15060 rm -f conftest.er1 | |
15061 cat conftest.err >&5 | |
15062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15063 (exit $ac_status); } >/dev/null && { | |
15064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15065 test ! -s conftest.err | |
15066 }; then | |
15067 ac_header_preproc=yes | |
15068 else | |
15069 $as_echo "$as_me: failed program was:" >&5 | |
15070 sed 's/^/| /' conftest.$ac_ext >&5 | |
15071 | |
15072 ac_header_preproc=no | |
15073 fi | |
15074 | |
15075 rm -f conftest.err conftest.$ac_ext | |
15076 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15077 $as_echo "$ac_header_preproc" >&6; } | |
15078 | |
15079 # So? What about this header? | |
15080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15081 yes:no: ) | |
15082 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15083 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15084 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5 | |
15085 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;} | |
15086 ac_header_preproc=yes | |
15087 ;; | |
15088 no:yes:* ) | |
15089 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 | |
15090 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} | |
15091 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 | |
15092 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} | |
15093 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5 | |
15094 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;} | |
15095 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15096 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
15097 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 | |
15098 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} | |
15099 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5 | |
15100 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;} | |
15101 | |
15102 ;; | |
15103 esac | |
15104 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
15105 $as_echo_n "checking for jerror.h... " >&6; } | |
15106 if test "${ac_cv_header_jerror_h+set}" = set; then | |
15107 $as_echo_n "(cached) " >&6 | |
15108 else | |
15109 ac_cv_header_jerror_h=$ac_header_preproc | |
15110 fi | |
15111 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
15112 $as_echo "$ac_cv_header_jerror_h" >&6; } | |
15113 | |
15114 fi | |
15115 if test $ac_cv_header_jerror_h = yes; then | |
15116 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 | |
15117 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } | 10075 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } |
15118 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | 10076 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then : |
15119 $as_echo_n "(cached) " >&6 | 10077 $as_echo_n "(cached) " >&6 |
15120 else | 10078 else |
15121 ac_check_lib_save_LIBS=$LIBS | 10079 ac_check_lib_save_LIBS=$LIBS |
15122 LIBS="-ljpeg $LIBS" | 10080 LIBS="-ljpeg $LIBS" |
15123 cat >conftest.$ac_ext <<_ACEOF | 10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15124 /* confdefs.h. */ | |
15125 _ACEOF | |
15126 cat confdefs.h >>conftest.$ac_ext | |
15127 cat >>conftest.$ac_ext <<_ACEOF | |
15128 /* end confdefs.h. */ | 10082 /* end confdefs.h. */ |
15129 | 10083 |
15130 /* Override any GCC internal prototype to avoid an error. | 10084 /* Override any GCC internal prototype to avoid an error. |
15131 Use char because int might match the return type of a GCC | 10085 Use char because int might match the return type of a GCC |
15132 builtin and then its argument prototype would still apply. */ | 10086 builtin and then its argument prototype would still apply. */ |
15140 return jpeg_destroy_compress (); | 10094 return jpeg_destroy_compress (); |
15141 ; | 10095 ; |
15142 return 0; | 10096 return 0; |
15143 } | 10097 } |
15144 _ACEOF | 10098 _ACEOF |
15145 rm -f conftest.$ac_objext conftest$ac_exeext | 10099 if ac_fn_c_try_link "$LINENO"; then : |
15146 if { (ac_try="$ac_link" | |
15147 case "(($ac_try" in | |
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15149 *) ac_try_echo=$ac_try;; | |
15150 esac | |
15151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15152 $as_echo "$ac_try_echo") >&5 | |
15153 (eval "$ac_link") 2>conftest.er1 | |
15154 ac_status=$? | |
15155 grep -v '^ *+' conftest.er1 >conftest.err | |
15156 rm -f conftest.er1 | |
15157 cat conftest.err >&5 | |
15158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15159 (exit $ac_status); } && { | |
15160 test -z "$ac_c_werror_flag" || | |
15161 test ! -s conftest.err | |
15162 } && test -s conftest$ac_exeext && { | |
15163 test "$cross_compiling" = yes || | |
15164 $as_test_x conftest$ac_exeext | |
15165 }; then | |
15166 ac_cv_lib_jpeg_jpeg_destroy_compress=yes | 10100 ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
15167 else | 10101 else |
15168 $as_echo "$as_me: failed program was:" >&5 | 10102 ac_cv_lib_jpeg_jpeg_destroy_compress=no |
15169 sed 's/^/| /' conftest.$ac_ext >&5 | 10103 fi |
15170 | 10104 rm -f core conftest.err conftest.$ac_objext \ |
15171 ac_cv_lib_jpeg_jpeg_destroy_compress=no | 10105 conftest$ac_exeext conftest.$ac_ext |
15172 fi | |
15173 | |
15174 rm -rf conftest.dSYM | |
15175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15176 conftest$ac_exeext conftest.$ac_ext | |
15177 LIBS=$ac_check_lib_save_LIBS | 10106 LIBS=$ac_check_lib_save_LIBS |
15178 fi | 10107 fi |
15179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 | 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
15180 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } | 10109 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } |
15181 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | 10110 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then : |
15182 HAVE_JPEG=yes | 10111 HAVE_JPEG=yes |
15183 fi | 10112 fi |
15184 | 10113 |
15185 fi | 10114 fi |
15186 | 10115 |
15187 | 10116 |
15188 fi | 10117 fi |
15189 | 10118 |
15190 | 10119 if test "${HAVE_JPEG}" = "yes"; then |
15191 if test "${HAVE_JPEG}" = "yes"; then | 10120 $as_echo "#define HAVE_JPEG 1" >>confdefs.h |
15192 cat >>confdefs.h <<\_ACEOF | 10121 |
15193 #define HAVE_JPEG 1 | 10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15194 _ACEOF | |
15195 | |
15196 cat >conftest.$ac_ext <<_ACEOF | |
15197 /* confdefs.h. */ | |
15198 _ACEOF | |
15199 cat confdefs.h >>conftest.$ac_ext | |
15200 cat >>conftest.$ac_ext <<_ACEOF | |
15201 /* end confdefs.h. */ | 10123 /* end confdefs.h. */ |
15202 #include <jpeglib.h> | 10124 #include <jpeglib.h> |
15203 version=JPEG_LIB_VERSION | 10125 version=JPEG_LIB_VERSION |
15204 | 10126 |
15205 _ACEOF | 10127 _ACEOF |
15206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 10128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15207 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then | 10129 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then : |
15208 cat >>confdefs.h <<\_ACEOF | 10130 $as_echo "#define HAVE_JPEG 1" >>confdefs.h |
15209 #define HAVE_JPEG 1 | 10131 |
15210 _ACEOF | 10132 else |
15211 | 10133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5 |
15212 else | |
15213 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 | |
15214 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} | 10134 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
15215 HAVE_JPEG=no | 10135 HAVE_JPEG=no |
15216 fi | 10136 fi |
15217 rm -f conftest* | 10137 rm -f conftest* |
15218 | 10138 |
15228 LIBPNG= | 10148 LIBPNG= |
15229 if test "${HAVE_X11}" = "yes"; then | 10149 if test "${HAVE_X11}" = "yes"; then |
15230 if test "${with_png}" != "no"; then | 10150 if test "${with_png}" != "no"; then |
15231 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h | 10151 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
15232 # in /usr/include/libpng. | 10152 # in /usr/include/libpng. |
15233 | 10153 for ac_header in png.h libpng/png.h |
15234 | 10154 do : |
15235 for ac_header in png.h libpng/png.h | 10155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
15236 do | 10156 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
15237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 10157 eval as_val=\$$as_ac_Header |
15238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 10158 if test "x$as_val" = x""yes; then : |
15239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15240 $as_echo_n "checking for $ac_header... " >&6; } | |
15241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15242 $as_echo_n "(cached) " >&6 | |
15243 fi | |
15244 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15245 $as_echo "$as_val"'` | |
15246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15247 $as_echo "$ac_res" >&6; } | |
15248 else | |
15249 # Is the header compilable? | |
15250 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15251 $as_echo_n "checking $ac_header usability... " >&6; } | |
15252 cat >conftest.$ac_ext <<_ACEOF | |
15253 /* confdefs.h. */ | |
15254 _ACEOF | |
15255 cat confdefs.h >>conftest.$ac_ext | |
15256 cat >>conftest.$ac_ext <<_ACEOF | |
15257 /* end confdefs.h. */ | |
15258 $ac_includes_default | |
15259 #include <$ac_header> | |
15260 _ACEOF | |
15261 rm -f conftest.$ac_objext | |
15262 if { (ac_try="$ac_compile" | |
15263 case "(($ac_try" in | |
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15265 *) ac_try_echo=$ac_try;; | |
15266 esac | |
15267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15268 $as_echo "$ac_try_echo") >&5 | |
15269 (eval "$ac_compile") 2>conftest.er1 | |
15270 ac_status=$? | |
15271 grep -v '^ *+' conftest.er1 >conftest.err | |
15272 rm -f conftest.er1 | |
15273 cat conftest.err >&5 | |
15274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15275 (exit $ac_status); } && { | |
15276 test -z "$ac_c_werror_flag" || | |
15277 test ! -s conftest.err | |
15278 } && test -s conftest.$ac_objext; then | |
15279 ac_header_compiler=yes | |
15280 else | |
15281 $as_echo "$as_me: failed program was:" >&5 | |
15282 sed 's/^/| /' conftest.$ac_ext >&5 | |
15283 | |
15284 ac_header_compiler=no | |
15285 fi | |
15286 | |
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15288 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15289 $as_echo "$ac_header_compiler" >&6; } | |
15290 | |
15291 # Is the header present? | |
15292 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15293 $as_echo_n "checking $ac_header presence... " >&6; } | |
15294 cat >conftest.$ac_ext <<_ACEOF | |
15295 /* confdefs.h. */ | |
15296 _ACEOF | |
15297 cat confdefs.h >>conftest.$ac_ext | |
15298 cat >>conftest.$ac_ext <<_ACEOF | |
15299 /* end confdefs.h. */ | |
15300 #include <$ac_header> | |
15301 _ACEOF | |
15302 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15303 case "(($ac_try" in | |
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15305 *) ac_try_echo=$ac_try;; | |
15306 esac | |
15307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15308 $as_echo "$ac_try_echo") >&5 | |
15309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15310 ac_status=$? | |
15311 grep -v '^ *+' conftest.er1 >conftest.err | |
15312 rm -f conftest.er1 | |
15313 cat conftest.err >&5 | |
15314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15315 (exit $ac_status); } >/dev/null && { | |
15316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15317 test ! -s conftest.err | |
15318 }; then | |
15319 ac_header_preproc=yes | |
15320 else | |
15321 $as_echo "$as_me: failed program was:" >&5 | |
15322 sed 's/^/| /' conftest.$ac_ext >&5 | |
15323 | |
15324 ac_header_preproc=no | |
15325 fi | |
15326 | |
15327 rm -f conftest.err conftest.$ac_ext | |
15328 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15329 $as_echo "$ac_header_preproc" >&6; } | |
15330 | |
15331 # So? What about this header? | |
15332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15333 yes:no: ) | |
15334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15335 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15337 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15338 ac_header_preproc=yes | |
15339 ;; | |
15340 no:yes:* ) | |
15341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15342 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15344 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15346 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15348 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15350 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15352 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15353 | |
15354 ;; | |
15355 esac | |
15356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15357 $as_echo_n "checking for $ac_header... " >&6; } | |
15358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15359 $as_echo_n "(cached) " >&6 | |
15360 else | |
15361 eval "$as_ac_Header=\$ac_header_preproc" | |
15362 fi | |
15363 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15364 $as_echo "$as_val"'` | |
15365 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15366 $as_echo "$ac_res" >&6; } | |
15367 | |
15368 fi | |
15369 if test `eval 'as_val=${'$as_ac_Header'} | |
15370 $as_echo "$as_val"'` = yes; then | |
15371 cat >>confdefs.h <<_ACEOF | 10159 cat >>confdefs.h <<_ACEOF |
15372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 10160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
15373 _ACEOF | 10161 _ACEOF |
15374 | 10162 |
15375 fi | 10163 fi |
15376 | 10164 |
15377 done | 10165 done |
15378 | 10166 |
15379 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | 10167 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then |
15380 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 | 10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5 |
15381 $as_echo_n "checking for png_get_channels in -lpng... " >&6; } | 10169 $as_echo_n "checking for png_get_channels in -lpng... " >&6; } |
15382 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | 10170 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then : |
15383 $as_echo_n "(cached) " >&6 | 10171 $as_echo_n "(cached) " >&6 |
15384 else | 10172 else |
15385 ac_check_lib_save_LIBS=$LIBS | 10173 ac_check_lib_save_LIBS=$LIBS |
15386 LIBS="-lpng -lz -lm $LIBS" | 10174 LIBS="-lpng -lz -lm $LIBS" |
15387 cat >conftest.$ac_ext <<_ACEOF | 10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15388 /* confdefs.h. */ | |
15389 _ACEOF | |
15390 cat confdefs.h >>conftest.$ac_ext | |
15391 cat >>conftest.$ac_ext <<_ACEOF | |
15392 /* end confdefs.h. */ | 10176 /* end confdefs.h. */ |
15393 | 10177 |
15394 /* Override any GCC internal prototype to avoid an error. | 10178 /* Override any GCC internal prototype to avoid an error. |
15395 Use char because int might match the return type of a GCC | 10179 Use char because int might match the return type of a GCC |
15396 builtin and then its argument prototype would still apply. */ | 10180 builtin and then its argument prototype would still apply. */ |
15404 return png_get_channels (); | 10188 return png_get_channels (); |
15405 ; | 10189 ; |
15406 return 0; | 10190 return 0; |
15407 } | 10191 } |
15408 _ACEOF | 10192 _ACEOF |
15409 rm -f conftest.$ac_objext conftest$ac_exeext | 10193 if ac_fn_c_try_link "$LINENO"; then : |
15410 if { (ac_try="$ac_link" | |
15411 case "(($ac_try" in | |
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15413 *) ac_try_echo=$ac_try;; | |
15414 esac | |
15415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15416 $as_echo "$ac_try_echo") >&5 | |
15417 (eval "$ac_link") 2>conftest.er1 | |
15418 ac_status=$? | |
15419 grep -v '^ *+' conftest.er1 >conftest.err | |
15420 rm -f conftest.er1 | |
15421 cat conftest.err >&5 | |
15422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15423 (exit $ac_status); } && { | |
15424 test -z "$ac_c_werror_flag" || | |
15425 test ! -s conftest.err | |
15426 } && test -s conftest$ac_exeext && { | |
15427 test "$cross_compiling" = yes || | |
15428 $as_test_x conftest$ac_exeext | |
15429 }; then | |
15430 ac_cv_lib_png_png_get_channels=yes | 10194 ac_cv_lib_png_png_get_channels=yes |
15431 else | 10195 else |
15432 $as_echo "$as_me: failed program was:" >&5 | 10196 ac_cv_lib_png_png_get_channels=no |
15433 sed 's/^/| /' conftest.$ac_ext >&5 | 10197 fi |
15434 | 10198 rm -f core conftest.err conftest.$ac_objext \ |
15435 ac_cv_lib_png_png_get_channels=no | 10199 conftest$ac_exeext conftest.$ac_ext |
15436 fi | |
15437 | |
15438 rm -rf conftest.dSYM | |
15439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15440 conftest$ac_exeext conftest.$ac_ext | |
15441 LIBS=$ac_check_lib_save_LIBS | 10200 LIBS=$ac_check_lib_save_LIBS |
15442 fi | 10201 fi |
15443 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 | 10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5 |
15444 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; } | 10203 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; } |
15445 if test $ac_cv_lib_png_png_get_channels = yes; then | 10204 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then : |
15446 HAVE_PNG=yes | 10205 HAVE_PNG=yes |
15447 fi | 10206 fi |
15448 | 10207 |
15449 fi | 10208 fi |
15450 fi | 10209 fi |
15451 | 10210 |
15452 if test "${HAVE_PNG}" = "yes"; then | 10211 if test "${HAVE_PNG}" = "yes"; then |
15453 | 10212 |
15454 cat >>confdefs.h <<\_ACEOF | 10213 $as_echo "#define HAVE_PNG 1" >>confdefs.h |
15455 #define HAVE_PNG 1 | |
15456 _ACEOF | |
15457 | 10214 |
15458 LIBPNG="-lpng -lz -lm" | 10215 LIBPNG="-lpng -lz -lm" |
15459 fi | 10216 fi |
15460 fi | 10217 fi |
15461 | 10218 |
15463 ### Use -ltiff if available, unless `--with-tiff=no'. | 10220 ### Use -ltiff if available, unless `--with-tiff=no'. |
15464 HAVE_TIFF=no | 10221 HAVE_TIFF=no |
15465 LIBTIFF= | 10222 LIBTIFF= |
15466 if test "${HAVE_X11}" = "yes"; then | 10223 if test "${HAVE_X11}" = "yes"; then |
15467 if test "${with_tiff}" != "no"; then | 10224 if test "${with_tiff}" != "no"; then |
15468 if test "${ac_cv_header_tiffio_h+set}" = set; then | 10225 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" |
15469 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5 | 10226 if test "x$ac_cv_header_tiffio_h" = x""yes; then : |
15470 $as_echo_n "checking for tiffio.h... " >&6; } | |
15471 if test "${ac_cv_header_tiffio_h+set}" = set; then | |
15472 $as_echo_n "(cached) " >&6 | |
15473 fi | |
15474 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
15475 $as_echo "$ac_cv_header_tiffio_h" >&6; } | |
15476 else | |
15477 # Is the header compilable? | |
15478 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
15479 $as_echo_n "checking tiffio.h usability... " >&6; } | |
15480 cat >conftest.$ac_ext <<_ACEOF | |
15481 /* confdefs.h. */ | |
15482 _ACEOF | |
15483 cat confdefs.h >>conftest.$ac_ext | |
15484 cat >>conftest.$ac_ext <<_ACEOF | |
15485 /* end confdefs.h. */ | |
15486 $ac_includes_default | |
15487 #include <tiffio.h> | |
15488 _ACEOF | |
15489 rm -f conftest.$ac_objext | |
15490 if { (ac_try="$ac_compile" | |
15491 case "(($ac_try" in | |
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15493 *) ac_try_echo=$ac_try;; | |
15494 esac | |
15495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15496 $as_echo "$ac_try_echo") >&5 | |
15497 (eval "$ac_compile") 2>conftest.er1 | |
15498 ac_status=$? | |
15499 grep -v '^ *+' conftest.er1 >conftest.err | |
15500 rm -f conftest.er1 | |
15501 cat conftest.err >&5 | |
15502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15503 (exit $ac_status); } && { | |
15504 test -z "$ac_c_werror_flag" || | |
15505 test ! -s conftest.err | |
15506 } && test -s conftest.$ac_objext; then | |
15507 ac_header_compiler=yes | |
15508 else | |
15509 $as_echo "$as_me: failed program was:" >&5 | |
15510 sed 's/^/| /' conftest.$ac_ext >&5 | |
15511 | |
15512 ac_header_compiler=no | |
15513 fi | |
15514 | |
15515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15516 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15517 $as_echo "$ac_header_compiler" >&6; } | |
15518 | |
15519 # Is the header present? | |
15520 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
15521 $as_echo_n "checking tiffio.h presence... " >&6; } | |
15522 cat >conftest.$ac_ext <<_ACEOF | |
15523 /* confdefs.h. */ | |
15524 _ACEOF | |
15525 cat confdefs.h >>conftest.$ac_ext | |
15526 cat >>conftest.$ac_ext <<_ACEOF | |
15527 /* end confdefs.h. */ | |
15528 #include <tiffio.h> | |
15529 _ACEOF | |
15530 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15531 case "(($ac_try" in | |
15532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15533 *) ac_try_echo=$ac_try;; | |
15534 esac | |
15535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15536 $as_echo "$ac_try_echo") >&5 | |
15537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15538 ac_status=$? | |
15539 grep -v '^ *+' conftest.er1 >conftest.err | |
15540 rm -f conftest.er1 | |
15541 cat conftest.err >&5 | |
15542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15543 (exit $ac_status); } >/dev/null && { | |
15544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15545 test ! -s conftest.err | |
15546 }; then | |
15547 ac_header_preproc=yes | |
15548 else | |
15549 $as_echo "$as_me: failed program was:" >&5 | |
15550 sed 's/^/| /' conftest.$ac_ext >&5 | |
15551 | |
15552 ac_header_preproc=no | |
15553 fi | |
15554 | |
15555 rm -f conftest.err conftest.$ac_ext | |
15556 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15557 $as_echo "$ac_header_preproc" >&6; } | |
15558 | |
15559 # So? What about this header? | |
15560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15561 yes:no: ) | |
15562 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15563 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15564 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 | |
15565 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
15566 ac_header_preproc=yes | |
15567 ;; | |
15568 no:yes:* ) | |
15569 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
15570 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
15571 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
15572 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
15573 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
15574 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
15575 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15576 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
15577 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
15578 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
15579 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 | |
15580 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
15581 | |
15582 ;; | |
15583 esac | |
15584 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
15585 $as_echo_n "checking for tiffio.h... " >&6; } | |
15586 if test "${ac_cv_header_tiffio_h+set}" = set; then | |
15587 $as_echo_n "(cached) " >&6 | |
15588 else | |
15589 ac_cv_header_tiffio_h=$ac_header_preproc | |
15590 fi | |
15591 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
15592 $as_echo "$ac_cv_header_tiffio_h" >&6; } | |
15593 | |
15594 fi | |
15595 if test $ac_cv_header_tiffio_h = yes; then | |
15596 tifflibs="-lz -lm" | 10227 tifflibs="-lz -lm" |
15597 # At least one tiff package requires the jpeg library. | 10228 # At least one tiff package requires the jpeg library. |
15598 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | 10229 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
15599 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 | 10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5 |
15600 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } | 10231 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } |
15601 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | 10232 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then : |
15602 $as_echo_n "(cached) " >&6 | 10233 $as_echo_n "(cached) " >&6 |
15603 else | 10234 else |
15604 ac_check_lib_save_LIBS=$LIBS | 10235 ac_check_lib_save_LIBS=$LIBS |
15605 LIBS="-ltiff $tifflibs $LIBS" | 10236 LIBS="-ltiff $tifflibs $LIBS" |
15606 cat >conftest.$ac_ext <<_ACEOF | 10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15607 /* confdefs.h. */ | |
15608 _ACEOF | |
15609 cat confdefs.h >>conftest.$ac_ext | |
15610 cat >>conftest.$ac_ext <<_ACEOF | |
15611 /* end confdefs.h. */ | 10238 /* end confdefs.h. */ |
15612 | 10239 |
15613 /* Override any GCC internal prototype to avoid an error. | 10240 /* Override any GCC internal prototype to avoid an error. |
15614 Use char because int might match the return type of a GCC | 10241 Use char because int might match the return type of a GCC |
15615 builtin and then its argument prototype would still apply. */ | 10242 builtin and then its argument prototype would still apply. */ |
15623 return TIFFGetVersion (); | 10250 return TIFFGetVersion (); |
15624 ; | 10251 ; |
15625 return 0; | 10252 return 0; |
15626 } | 10253 } |
15627 _ACEOF | 10254 _ACEOF |
15628 rm -f conftest.$ac_objext conftest$ac_exeext | 10255 if ac_fn_c_try_link "$LINENO"; then : |
15629 if { (ac_try="$ac_link" | |
15630 case "(($ac_try" in | |
15631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15632 *) ac_try_echo=$ac_try;; | |
15633 esac | |
15634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15635 $as_echo "$ac_try_echo") >&5 | |
15636 (eval "$ac_link") 2>conftest.er1 | |
15637 ac_status=$? | |
15638 grep -v '^ *+' conftest.er1 >conftest.err | |
15639 rm -f conftest.er1 | |
15640 cat conftest.err >&5 | |
15641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15642 (exit $ac_status); } && { | |
15643 test -z "$ac_c_werror_flag" || | |
15644 test ! -s conftest.err | |
15645 } && test -s conftest$ac_exeext && { | |
15646 test "$cross_compiling" = yes || | |
15647 $as_test_x conftest$ac_exeext | |
15648 }; then | |
15649 ac_cv_lib_tiff_TIFFGetVersion=yes | 10256 ac_cv_lib_tiff_TIFFGetVersion=yes |
15650 else | 10257 else |
15651 $as_echo "$as_me: failed program was:" >&5 | 10258 ac_cv_lib_tiff_TIFFGetVersion=no |
15652 sed 's/^/| /' conftest.$ac_ext >&5 | 10259 fi |
15653 | 10260 rm -f core conftest.err conftest.$ac_objext \ |
15654 ac_cv_lib_tiff_TIFFGetVersion=no | 10261 conftest$ac_exeext conftest.$ac_ext |
15655 fi | |
15656 | |
15657 rm -rf conftest.dSYM | |
15658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15659 conftest$ac_exeext conftest.$ac_ext | |
15660 LIBS=$ac_check_lib_save_LIBS | 10262 LIBS=$ac_check_lib_save_LIBS |
15661 fi | 10263 fi |
15662 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 | 10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
15663 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } | 10265 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } |
15664 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | 10266 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then : |
15665 HAVE_TIFF=yes | 10267 HAVE_TIFF=yes |
15666 fi | 10268 fi |
15667 | 10269 |
15668 fi | 10270 fi |
15669 | 10271 |
15670 | 10272 |
15671 fi | 10273 fi |
15672 | 10274 |
15673 if test "${HAVE_TIFF}" = "yes"; then | 10275 if test "${HAVE_TIFF}" = "yes"; then |
15674 | 10276 |
15675 cat >>confdefs.h <<\_ACEOF | 10277 $as_echo "#define HAVE_TIFF 1" >>confdefs.h |
15676 #define HAVE_TIFF 1 | |
15677 _ACEOF | |
15678 | 10278 |
15679 LIBTIFF=-ltiff | 10279 LIBTIFF=-ltiff |
15680 fi | 10280 fi |
15681 fi | 10281 fi |
15682 | 10282 |
15683 | 10283 |
15684 ### Use -lgif or -lungif if available, unless `--with-gif=no'. | 10284 ### Use -lgif or -lungif if available, unless `--with-gif=no'. |
15685 HAVE_GIF=no | 10285 HAVE_GIF=no |
15686 LIBGIF= | 10286 LIBGIF= |
15687 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then | 10287 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then |
15688 if test "${ac_cv_header_gif_lib_h+set}" = set; then | 10288 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" |
15689 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | 10289 if test "x$ac_cv_header_gif_lib_h" = x""yes; then : |
15690 $as_echo_n "checking for gif_lib.h... " >&6; } | |
15691 if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
15692 $as_echo_n "(cached) " >&6 | |
15693 fi | |
15694 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
15695 $as_echo "$ac_cv_header_gif_lib_h" >&6; } | |
15696 else | |
15697 # Is the header compilable? | |
15698 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 | |
15699 $as_echo_n "checking gif_lib.h usability... " >&6; } | |
15700 cat >conftest.$ac_ext <<_ACEOF | |
15701 /* confdefs.h. */ | |
15702 _ACEOF | |
15703 cat confdefs.h >>conftest.$ac_ext | |
15704 cat >>conftest.$ac_ext <<_ACEOF | |
15705 /* end confdefs.h. */ | |
15706 $ac_includes_default | |
15707 #include <gif_lib.h> | |
15708 _ACEOF | |
15709 rm -f conftest.$ac_objext | |
15710 if { (ac_try="$ac_compile" | |
15711 case "(($ac_try" in | |
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15713 *) ac_try_echo=$ac_try;; | |
15714 esac | |
15715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15716 $as_echo "$ac_try_echo") >&5 | |
15717 (eval "$ac_compile") 2>conftest.er1 | |
15718 ac_status=$? | |
15719 grep -v '^ *+' conftest.er1 >conftest.err | |
15720 rm -f conftest.er1 | |
15721 cat conftest.err >&5 | |
15722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15723 (exit $ac_status); } && { | |
15724 test -z "$ac_c_werror_flag" || | |
15725 test ! -s conftest.err | |
15726 } && test -s conftest.$ac_objext; then | |
15727 ac_header_compiler=yes | |
15728 else | |
15729 $as_echo "$as_me: failed program was:" >&5 | |
15730 sed 's/^/| /' conftest.$ac_ext >&5 | |
15731 | |
15732 ac_header_compiler=no | |
15733 fi | |
15734 | |
15735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15736 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15737 $as_echo "$ac_header_compiler" >&6; } | |
15738 | |
15739 # Is the header present? | |
15740 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 | |
15741 $as_echo_n "checking gif_lib.h presence... " >&6; } | |
15742 cat >conftest.$ac_ext <<_ACEOF | |
15743 /* confdefs.h. */ | |
15744 _ACEOF | |
15745 cat confdefs.h >>conftest.$ac_ext | |
15746 cat >>conftest.$ac_ext <<_ACEOF | |
15747 /* end confdefs.h. */ | |
15748 #include <gif_lib.h> | |
15749 _ACEOF | |
15750 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15751 case "(($ac_try" in | |
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15753 *) ac_try_echo=$ac_try;; | |
15754 esac | |
15755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15756 $as_echo "$ac_try_echo") >&5 | |
15757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15758 ac_status=$? | |
15759 grep -v '^ *+' conftest.er1 >conftest.err | |
15760 rm -f conftest.er1 | |
15761 cat conftest.err >&5 | |
15762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15763 (exit $ac_status); } >/dev/null && { | |
15764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15765 test ! -s conftest.err | |
15766 }; then | |
15767 ac_header_preproc=yes | |
15768 else | |
15769 $as_echo "$as_me: failed program was:" >&5 | |
15770 sed 's/^/| /' conftest.$ac_ext >&5 | |
15771 | |
15772 ac_header_preproc=no | |
15773 fi | |
15774 | |
15775 rm -f conftest.err conftest.$ac_ext | |
15776 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15777 $as_echo "$ac_header_preproc" >&6; } | |
15778 | |
15779 # So? What about this header? | |
15780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15781 yes:no: ) | |
15782 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15783 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15784 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5 | |
15785 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;} | |
15786 ac_header_preproc=yes | |
15787 ;; | |
15788 no:yes:* ) | |
15789 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 | |
15790 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} | |
15791 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 | |
15792 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} | |
15793 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5 | |
15794 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;} | |
15795 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15796 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
15797 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 | |
15798 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} | |
15799 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5 | |
15800 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;} | |
15801 | |
15802 ;; | |
15803 esac | |
15804 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
15805 $as_echo_n "checking for gif_lib.h... " >&6; } | |
15806 if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
15807 $as_echo_n "(cached) " >&6 | |
15808 else | |
15809 ac_cv_header_gif_lib_h=$ac_header_preproc | |
15810 fi | |
15811 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
15812 $as_echo "$ac_cv_header_gif_lib_h" >&6; } | |
15813 | |
15814 fi | |
15815 if test $ac_cv_header_gif_lib_h = yes; then | |
15816 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | 10290 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. |
15817 # Earlier versions can crash Emacs. | 10291 # Earlier versions can crash Emacs. |
15818 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5 | 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5 |
15819 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } | 10293 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } |
15820 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then | 10294 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then : |
15821 $as_echo_n "(cached) " >&6 | 10295 $as_echo_n "(cached) " >&6 |
15822 else | 10296 else |
15823 ac_check_lib_save_LIBS=$LIBS | 10297 ac_check_lib_save_LIBS=$LIBS |
15824 LIBS="-lgif $LIBS" | 10298 LIBS="-lgif $LIBS" |
15825 cat >conftest.$ac_ext <<_ACEOF | 10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15826 /* confdefs.h. */ | |
15827 _ACEOF | |
15828 cat confdefs.h >>conftest.$ac_ext | |
15829 cat >>conftest.$ac_ext <<_ACEOF | |
15830 /* end confdefs.h. */ | 10300 /* end confdefs.h. */ |
15831 | 10301 |
15832 /* Override any GCC internal prototype to avoid an error. | 10302 /* Override any GCC internal prototype to avoid an error. |
15833 Use char because int might match the return type of a GCC | 10303 Use char because int might match the return type of a GCC |
15834 builtin and then its argument prototype would still apply. */ | 10304 builtin and then its argument prototype would still apply. */ |
15842 return EGifPutExtensionLast (); | 10312 return EGifPutExtensionLast (); |
15843 ; | 10313 ; |
15844 return 0; | 10314 return 0; |
15845 } | 10315 } |
15846 _ACEOF | 10316 _ACEOF |
15847 rm -f conftest.$ac_objext conftest$ac_exeext | 10317 if ac_fn_c_try_link "$LINENO"; then : |
15848 if { (ac_try="$ac_link" | |
15849 case "(($ac_try" in | |
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15851 *) ac_try_echo=$ac_try;; | |
15852 esac | |
15853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15854 $as_echo "$ac_try_echo") >&5 | |
15855 (eval "$ac_link") 2>conftest.er1 | |
15856 ac_status=$? | |
15857 grep -v '^ *+' conftest.er1 >conftest.err | |
15858 rm -f conftest.er1 | |
15859 cat conftest.err >&5 | |
15860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15861 (exit $ac_status); } && { | |
15862 test -z "$ac_c_werror_flag" || | |
15863 test ! -s conftest.err | |
15864 } && test -s conftest$ac_exeext && { | |
15865 test "$cross_compiling" = yes || | |
15866 $as_test_x conftest$ac_exeext | |
15867 }; then | |
15868 ac_cv_lib_gif_EGifPutExtensionLast=yes | 10318 ac_cv_lib_gif_EGifPutExtensionLast=yes |
15869 else | 10319 else |
15870 $as_echo "$as_me: failed program was:" >&5 | 10320 ac_cv_lib_gif_EGifPutExtensionLast=no |
15871 sed 's/^/| /' conftest.$ac_ext >&5 | 10321 fi |
15872 | 10322 rm -f core conftest.err conftest.$ac_objext \ |
15873 ac_cv_lib_gif_EGifPutExtensionLast=no | 10323 conftest$ac_exeext conftest.$ac_ext |
15874 fi | |
15875 | |
15876 rm -rf conftest.dSYM | |
15877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15878 conftest$ac_exeext conftest.$ac_ext | |
15879 LIBS=$ac_check_lib_save_LIBS | 10324 LIBS=$ac_check_lib_save_LIBS |
15880 fi | 10325 fi |
15881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 | 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 |
15882 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } | 10327 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } |
15883 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then | 10328 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then : |
15884 HAVE_GIF=yes | 10329 HAVE_GIF=yes |
15885 else | 10330 else |
15886 HAVE_GIF=maybe | 10331 HAVE_GIF=maybe |
15887 fi | 10332 fi |
15888 | 10333 |
15892 | 10337 |
15893 if test "$HAVE_GIF" = yes; then | 10338 if test "$HAVE_GIF" = yes; then |
15894 LIBGIF=-lgif | 10339 LIBGIF=-lgif |
15895 elif test "$HAVE_GIF" = maybe; then | 10340 elif test "$HAVE_GIF" = maybe; then |
15896 # If gif_lib.h but no libgif, try libungif. | 10341 # If gif_lib.h but no libgif, try libungif. |
15897 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 | 10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5 |
15898 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } | 10343 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } |
15899 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | 10344 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then : |
15900 $as_echo_n "(cached) " >&6 | 10345 $as_echo_n "(cached) " >&6 |
15901 else | 10346 else |
15902 ac_check_lib_save_LIBS=$LIBS | 10347 ac_check_lib_save_LIBS=$LIBS |
15903 LIBS="-lungif $LIBS" | 10348 LIBS="-lungif $LIBS" |
15904 cat >conftest.$ac_ext <<_ACEOF | 10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15905 /* confdefs.h. */ | |
15906 _ACEOF | |
15907 cat confdefs.h >>conftest.$ac_ext | |
15908 cat >>conftest.$ac_ext <<_ACEOF | |
15909 /* end confdefs.h. */ | 10350 /* end confdefs.h. */ |
15910 | 10351 |
15911 /* Override any GCC internal prototype to avoid an error. | 10352 /* Override any GCC internal prototype to avoid an error. |
15912 Use char because int might match the return type of a GCC | 10353 Use char because int might match the return type of a GCC |
15913 builtin and then its argument prototype would still apply. */ | 10354 builtin and then its argument prototype would still apply. */ |
15921 return EGifPutExtensionLast (); | 10362 return EGifPutExtensionLast (); |
15922 ; | 10363 ; |
15923 return 0; | 10364 return 0; |
15924 } | 10365 } |
15925 _ACEOF | 10366 _ACEOF |
15926 rm -f conftest.$ac_objext conftest$ac_exeext | 10367 if ac_fn_c_try_link "$LINENO"; then : |
15927 if { (ac_try="$ac_link" | |
15928 case "(($ac_try" in | |
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15930 *) ac_try_echo=$ac_try;; | |
15931 esac | |
15932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15933 $as_echo "$ac_try_echo") >&5 | |
15934 (eval "$ac_link") 2>conftest.er1 | |
15935 ac_status=$? | |
15936 grep -v '^ *+' conftest.er1 >conftest.err | |
15937 rm -f conftest.er1 | |
15938 cat conftest.err >&5 | |
15939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15940 (exit $ac_status); } && { | |
15941 test -z "$ac_c_werror_flag" || | |
15942 test ! -s conftest.err | |
15943 } && test -s conftest$ac_exeext && { | |
15944 test "$cross_compiling" = yes || | |
15945 $as_test_x conftest$ac_exeext | |
15946 }; then | |
15947 ac_cv_lib_ungif_EGifPutExtensionLast=yes | 10368 ac_cv_lib_ungif_EGifPutExtensionLast=yes |
15948 else | 10369 else |
15949 $as_echo "$as_me: failed program was:" >&5 | 10370 ac_cv_lib_ungif_EGifPutExtensionLast=no |
15950 sed 's/^/| /' conftest.$ac_ext >&5 | 10371 fi |
15951 | 10372 rm -f core conftest.err conftest.$ac_objext \ |
15952 ac_cv_lib_ungif_EGifPutExtensionLast=no | 10373 conftest$ac_exeext conftest.$ac_ext |
15953 fi | |
15954 | |
15955 rm -rf conftest.dSYM | |
15956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15957 conftest$ac_exeext conftest.$ac_ext | |
15958 LIBS=$ac_check_lib_save_LIBS | 10374 LIBS=$ac_check_lib_save_LIBS |
15959 fi | 10375 fi |
15960 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 | 10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
15961 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } | 10377 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } |
15962 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | 10378 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then : |
15963 HAVE_GIF=yes | 10379 HAVE_GIF=yes |
15964 else | 10380 else |
15965 HAVE_GIF=no | 10381 HAVE_GIF=no |
15966 fi | 10382 fi |
15967 | 10383 |
15968 test "$HAVE_GIF" = yes && LIBGIF=-lungif | 10384 test "$HAVE_GIF" = yes && LIBGIF=-lungif |
15969 fi | 10385 fi |
15970 | 10386 |
15971 if test "${HAVE_GIF}" = "yes"; then | 10387 if test "${HAVE_GIF}" = "yes"; then |
15972 | 10388 |
15973 cat >>confdefs.h <<\_ACEOF | 10389 $as_echo "#define HAVE_GIF 1" >>confdefs.h |
15974 #define HAVE_GIF 1 | |
15975 _ACEOF | |
15976 | 10390 |
15977 fi | 10391 fi |
15978 fi | 10392 fi |
15979 | 10393 |
15980 | 10394 |
15991 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" | 10405 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" |
15992 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && | 10406 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && |
15993 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" | 10407 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" |
15994 | 10408 |
15995 if test "X${MISSING}" != X; then | 10409 if test "X${MISSING}" != X; then |
15996 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found: | 10410 as_fn_error "The following required libraries were not found: |
15997 $MISSING | 10411 $MISSING |
15998 Maybe some development libraries/packages are missing? | 10412 Maybe some development libraries/packages are missing? |
15999 If you don't want to link with them give | 10413 If you don't want to link with them give |
16000 $WITH_NO | 10414 $WITH_NO |
16001 as options to configure" >&5 | 10415 as options to configure" "$LINENO" 5 |
16002 $as_echo "$as_me: error: The following required libraries were not found: | |
16003 $MISSING | |
16004 Maybe some development libraries/packages are missing? | |
16005 If you don't want to link with them give | |
16006 $WITH_NO | |
16007 as options to configure" >&2;} | |
16008 { (exit 1); exit 1; }; } | |
16009 fi | 10416 fi |
16010 fi | 10417 fi |
16011 | 10418 |
16012 ### Use -lgpm if available, unless `--with-gpm=no'. | 10419 ### Use -lgpm if available, unless `--with-gpm=no'. |
16013 HAVE_GPM=no | 10420 HAVE_GPM=no |
16014 LIBGPM= | 10421 LIBGPM= |
16015 MOUSE_SUPPORT= | 10422 MOUSE_SUPPORT= |
16016 if test "${with_gpm}" != "no"; then | 10423 if test "${with_gpm}" != "no"; then |
16017 if test "${ac_cv_header_gpm_h+set}" = set; then | 10424 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default" |
16018 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5 | 10425 if test "x$ac_cv_header_gpm_h" = x""yes; then : |
16019 $as_echo_n "checking for gpm.h... " >&6; } | 10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 |
16020 if test "${ac_cv_header_gpm_h+set}" = set; then | |
16021 $as_echo_n "(cached) " >&6 | |
16022 fi | |
16023 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5 | |
16024 $as_echo "$ac_cv_header_gpm_h" >&6; } | |
16025 else | |
16026 # Is the header compilable? | |
16027 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5 | |
16028 $as_echo_n "checking gpm.h usability... " >&6; } | |
16029 cat >conftest.$ac_ext <<_ACEOF | |
16030 /* confdefs.h. */ | |
16031 _ACEOF | |
16032 cat confdefs.h >>conftest.$ac_ext | |
16033 cat >>conftest.$ac_ext <<_ACEOF | |
16034 /* end confdefs.h. */ | |
16035 $ac_includes_default | |
16036 #include <gpm.h> | |
16037 _ACEOF | |
16038 rm -f conftest.$ac_objext | |
16039 if { (ac_try="$ac_compile" | |
16040 case "(($ac_try" in | |
16041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16042 *) ac_try_echo=$ac_try;; | |
16043 esac | |
16044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16045 $as_echo "$ac_try_echo") >&5 | |
16046 (eval "$ac_compile") 2>conftest.er1 | |
16047 ac_status=$? | |
16048 grep -v '^ *+' conftest.er1 >conftest.err | |
16049 rm -f conftest.er1 | |
16050 cat conftest.err >&5 | |
16051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16052 (exit $ac_status); } && { | |
16053 test -z "$ac_c_werror_flag" || | |
16054 test ! -s conftest.err | |
16055 } && test -s conftest.$ac_objext; then | |
16056 ac_header_compiler=yes | |
16057 else | |
16058 $as_echo "$as_me: failed program was:" >&5 | |
16059 sed 's/^/| /' conftest.$ac_ext >&5 | |
16060 | |
16061 ac_header_compiler=no | |
16062 fi | |
16063 | |
16064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16065 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16066 $as_echo "$ac_header_compiler" >&6; } | |
16067 | |
16068 # Is the header present? | |
16069 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5 | |
16070 $as_echo_n "checking gpm.h presence... " >&6; } | |
16071 cat >conftest.$ac_ext <<_ACEOF | |
16072 /* confdefs.h. */ | |
16073 _ACEOF | |
16074 cat confdefs.h >>conftest.$ac_ext | |
16075 cat >>conftest.$ac_ext <<_ACEOF | |
16076 /* end confdefs.h. */ | |
16077 #include <gpm.h> | |
16078 _ACEOF | |
16079 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
16080 case "(($ac_try" in | |
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16082 *) ac_try_echo=$ac_try;; | |
16083 esac | |
16084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16085 $as_echo "$ac_try_echo") >&5 | |
16086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
16087 ac_status=$? | |
16088 grep -v '^ *+' conftest.er1 >conftest.err | |
16089 rm -f conftest.er1 | |
16090 cat conftest.err >&5 | |
16091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16092 (exit $ac_status); } >/dev/null && { | |
16093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16094 test ! -s conftest.err | |
16095 }; then | |
16096 ac_header_preproc=yes | |
16097 else | |
16098 $as_echo "$as_me: failed program was:" >&5 | |
16099 sed 's/^/| /' conftest.$ac_ext >&5 | |
16100 | |
16101 ac_header_preproc=no | |
16102 fi | |
16103 | |
16104 rm -f conftest.err conftest.$ac_ext | |
16105 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16106 $as_echo "$ac_header_preproc" >&6; } | |
16107 | |
16108 # So? What about this header? | |
16109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16110 yes:no: ) | |
16111 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16112 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16113 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5 | |
16114 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;} | |
16115 ac_header_preproc=yes | |
16116 ;; | |
16117 no:yes:* ) | |
16118 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5 | |
16119 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;} | |
16120 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5 | |
16121 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;} | |
16122 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5 | |
16123 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;} | |
16124 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
16125 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
16126 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5 | |
16127 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;} | |
16128 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5 | |
16129 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;} | |
16130 | |
16131 ;; | |
16132 esac | |
16133 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5 | |
16134 $as_echo_n "checking for gpm.h... " >&6; } | |
16135 if test "${ac_cv_header_gpm_h+set}" = set; then | |
16136 $as_echo_n "(cached) " >&6 | |
16137 else | |
16138 ac_cv_header_gpm_h=$ac_header_preproc | |
16139 fi | |
16140 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5 | |
16141 $as_echo "$ac_cv_header_gpm_h" >&6; } | |
16142 | |
16143 fi | |
16144 if test $ac_cv_header_gpm_h = yes; then | |
16145 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5 | |
16146 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } | 10427 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } |
16147 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then | 10428 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then : |
16148 $as_echo_n "(cached) " >&6 | 10429 $as_echo_n "(cached) " >&6 |
16149 else | 10430 else |
16150 ac_check_lib_save_LIBS=$LIBS | 10431 ac_check_lib_save_LIBS=$LIBS |
16151 LIBS="-lgpm $LIBS" | 10432 LIBS="-lgpm $LIBS" |
16152 cat >conftest.$ac_ext <<_ACEOF | 10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16153 /* confdefs.h. */ | |
16154 _ACEOF | |
16155 cat confdefs.h >>conftest.$ac_ext | |
16156 cat >>conftest.$ac_ext <<_ACEOF | |
16157 /* end confdefs.h. */ | 10434 /* end confdefs.h. */ |
16158 | 10435 |
16159 /* Override any GCC internal prototype to avoid an error. | 10436 /* Override any GCC internal prototype to avoid an error. |
16160 Use char because int might match the return type of a GCC | 10437 Use char because int might match the return type of a GCC |
16161 builtin and then its argument prototype would still apply. */ | 10438 builtin and then its argument prototype would still apply. */ |
16169 return Gpm_Open (); | 10446 return Gpm_Open (); |
16170 ; | 10447 ; |
16171 return 0; | 10448 return 0; |
16172 } | 10449 } |
16173 _ACEOF | 10450 _ACEOF |
16174 rm -f conftest.$ac_objext conftest$ac_exeext | 10451 if ac_fn_c_try_link "$LINENO"; then : |
16175 if { (ac_try="$ac_link" | |
16176 case "(($ac_try" in | |
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16178 *) ac_try_echo=$ac_try;; | |
16179 esac | |
16180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16181 $as_echo "$ac_try_echo") >&5 | |
16182 (eval "$ac_link") 2>conftest.er1 | |
16183 ac_status=$? | |
16184 grep -v '^ *+' conftest.er1 >conftest.err | |
16185 rm -f conftest.er1 | |
16186 cat conftest.err >&5 | |
16187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16188 (exit $ac_status); } && { | |
16189 test -z "$ac_c_werror_flag" || | |
16190 test ! -s conftest.err | |
16191 } && test -s conftest$ac_exeext && { | |
16192 test "$cross_compiling" = yes || | |
16193 $as_test_x conftest$ac_exeext | |
16194 }; then | |
16195 ac_cv_lib_gpm_Gpm_Open=yes | 10452 ac_cv_lib_gpm_Gpm_Open=yes |
16196 else | 10453 else |
16197 $as_echo "$as_me: failed program was:" >&5 | 10454 ac_cv_lib_gpm_Gpm_Open=no |
16198 sed 's/^/| /' conftest.$ac_ext >&5 | 10455 fi |
16199 | 10456 rm -f core conftest.err conftest.$ac_objext \ |
16200 ac_cv_lib_gpm_Gpm_Open=no | 10457 conftest$ac_exeext conftest.$ac_ext |
16201 fi | |
16202 | |
16203 rm -rf conftest.dSYM | |
16204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16205 conftest$ac_exeext conftest.$ac_ext | |
16206 LIBS=$ac_check_lib_save_LIBS | 10458 LIBS=$ac_check_lib_save_LIBS |
16207 fi | 10459 fi |
16208 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5 | 10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 |
16209 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } | 10461 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } |
16210 if test $ac_cv_lib_gpm_Gpm_Open = yes; then | 10462 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then : |
16211 HAVE_GPM=yes | 10463 HAVE_GPM=yes |
16212 fi | 10464 fi |
16213 | 10465 |
16214 fi | 10466 fi |
16215 | 10467 |
16216 | 10468 |
16217 | 10469 |
16218 if test "${HAVE_GPM}" = "yes"; then | 10470 if test "${HAVE_GPM}" = "yes"; then |
16219 | 10471 |
16220 cat >>confdefs.h <<\_ACEOF | 10472 $as_echo "#define HAVE_GPM 1" >>confdefs.h |
16221 #define HAVE_GPM 1 | |
16222 _ACEOF | |
16223 | 10473 |
16224 LIBGPM=-lgpm | 10474 LIBGPM=-lgpm |
16225 ## May be reset below. | 10475 ## May be reset below. |
16226 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)" | 10476 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)" |
16227 fi | 10477 fi |
16228 fi | 10478 fi |
16229 | 10479 |
16230 | 10480 |
16231 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then | 10481 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" |
16232 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 | 10482 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then : |
16233 $as_echo_n "checking for malloc/malloc.h... " >&6; } | 10483 |
16234 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then | 10484 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h |
16235 $as_echo_n "(cached) " >&6 | |
16236 fi | |
16237 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 | |
16238 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; } | |
16239 else | |
16240 # Is the header compilable? | |
16241 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5 | |
16242 $as_echo_n "checking malloc/malloc.h usability... " >&6; } | |
16243 cat >conftest.$ac_ext <<_ACEOF | |
16244 /* confdefs.h. */ | |
16245 _ACEOF | |
16246 cat confdefs.h >>conftest.$ac_ext | |
16247 cat >>conftest.$ac_ext <<_ACEOF | |
16248 /* end confdefs.h. */ | |
16249 $ac_includes_default | |
16250 #include <malloc/malloc.h> | |
16251 _ACEOF | |
16252 rm -f conftest.$ac_objext | |
16253 if { (ac_try="$ac_compile" | |
16254 case "(($ac_try" in | |
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16256 *) ac_try_echo=$ac_try;; | |
16257 esac | |
16258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16259 $as_echo "$ac_try_echo") >&5 | |
16260 (eval "$ac_compile") 2>conftest.er1 | |
16261 ac_status=$? | |
16262 grep -v '^ *+' conftest.er1 >conftest.err | |
16263 rm -f conftest.er1 | |
16264 cat conftest.err >&5 | |
16265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16266 (exit $ac_status); } && { | |
16267 test -z "$ac_c_werror_flag" || | |
16268 test ! -s conftest.err | |
16269 } && test -s conftest.$ac_objext; then | |
16270 ac_header_compiler=yes | |
16271 else | |
16272 $as_echo "$as_me: failed program was:" >&5 | |
16273 sed 's/^/| /' conftest.$ac_ext >&5 | |
16274 | |
16275 ac_header_compiler=no | |
16276 fi | |
16277 | |
16278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16279 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16280 $as_echo "$ac_header_compiler" >&6; } | |
16281 | |
16282 # Is the header present? | |
16283 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5 | |
16284 $as_echo_n "checking malloc/malloc.h presence... " >&6; } | |
16285 cat >conftest.$ac_ext <<_ACEOF | |
16286 /* confdefs.h. */ | |
16287 _ACEOF | |
16288 cat confdefs.h >>conftest.$ac_ext | |
16289 cat >>conftest.$ac_ext <<_ACEOF | |
16290 /* end confdefs.h. */ | |
16291 #include <malloc/malloc.h> | |
16292 _ACEOF | |
16293 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
16294 case "(($ac_try" in | |
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16296 *) ac_try_echo=$ac_try;; | |
16297 esac | |
16298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16299 $as_echo "$ac_try_echo") >&5 | |
16300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
16301 ac_status=$? | |
16302 grep -v '^ *+' conftest.er1 >conftest.err | |
16303 rm -f conftest.er1 | |
16304 cat conftest.err >&5 | |
16305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16306 (exit $ac_status); } >/dev/null && { | |
16307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16308 test ! -s conftest.err | |
16309 }; then | |
16310 ac_header_preproc=yes | |
16311 else | |
16312 $as_echo "$as_me: failed program was:" >&5 | |
16313 sed 's/^/| /' conftest.$ac_ext >&5 | |
16314 | |
16315 ac_header_preproc=no | |
16316 fi | |
16317 | |
16318 rm -f conftest.err conftest.$ac_ext | |
16319 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16320 $as_echo "$ac_header_preproc" >&6; } | |
16321 | |
16322 # So? What about this header? | |
16323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16324 yes:no: ) | |
16325 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16326 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16327 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5 | |
16328 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;} | |
16329 ac_header_preproc=yes | |
16330 ;; | |
16331 no:yes:* ) | |
16332 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5 | |
16333 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;} | |
16334 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5 | |
16335 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;} | |
16336 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5 | |
16337 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;} | |
16338 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5 | |
16339 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
16340 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5 | |
16341 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;} | |
16342 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5 | |
16343 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;} | |
16344 | |
16345 ;; | |
16346 esac | |
16347 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 | |
16348 $as_echo_n "checking for malloc/malloc.h... " >&6; } | |
16349 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then | |
16350 $as_echo_n "(cached) " >&6 | |
16351 else | |
16352 ac_cv_header_malloc_malloc_h=$ac_header_preproc | |
16353 fi | |
16354 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 | |
16355 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; } | |
16356 | |
16357 fi | |
16358 if test $ac_cv_header_malloc_malloc_h = yes; then | |
16359 | |
16360 cat >>confdefs.h <<\_ACEOF | |
16361 #define HAVE_MALLOC_MALLOC_H 1 | |
16362 _ACEOF | |
16363 | 10485 |
16364 fi | 10486 fi |
16365 | 10487 |
16366 | 10488 |
16367 | 10489 |
16368 C_SWITCH_X_SYSTEM= | 10490 C_SWITCH_X_SYSTEM= |
16369 ### Use NeXTstep API to implement GUI. | 10491 ### Use NeXTstep API to implement GUI. |
16370 if test "${HAVE_NS}" = "yes"; then | 10492 if test "${HAVE_NS}" = "yes"; then |
16371 | 10493 |
16372 cat >>confdefs.h <<\_ACEOF | 10494 $as_echo "#define HAVE_NS 1" >>confdefs.h |
16373 #define HAVE_NS 1 | |
16374 _ACEOF | |
16375 | 10495 |
16376 if test "${NS_IMPL_COCOA}" = "yes"; then | 10496 if test "${NS_IMPL_COCOA}" = "yes"; then |
16377 | 10497 |
16378 cat >>confdefs.h <<\_ACEOF | 10498 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h |
16379 #define NS_IMPL_COCOA 1 | |
16380 _ACEOF | |
16381 | 10499 |
16382 GNU_OBJC_CFLAGS= | 10500 GNU_OBJC_CFLAGS= |
16383 fi | 10501 fi |
16384 if test "${NS_IMPL_GNUSTEP}" = "yes"; then | 10502 if test "${NS_IMPL_GNUSTEP}" = "yes"; then |
16385 | 10503 |
16386 cat >>confdefs.h <<\_ACEOF | 10504 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h |
16387 #define NS_IMPL_GNUSTEP 1 | |
16388 _ACEOF | |
16389 | 10505 |
16390 # See also .m.o rule in Makefile.in */ | 10506 # See also .m.o rule in Makefile.in */ |
16391 # FIXME: are all these flags really needed? Document here why. */ | 10507 # FIXME: are all these flags really needed? Document here why. */ |
16392 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing" | 10508 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing" |
16393 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" | 10509 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" |
16394 fi | 10510 fi |
16395 if test "${NS_HAVE_NSINTEGER}" = "yes"; then | 10511 if test "${NS_HAVE_NSINTEGER}" = "yes"; then |
16396 | 10512 |
16397 cat >>confdefs.h <<\_ACEOF | 10513 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h |
16398 #define NS_HAVE_NSINTEGER 1 | |
16399 _ACEOF | |
16400 | 10514 |
16401 fi | 10515 fi |
16402 # We also have mouse menus. | 10516 # We also have mouse menus. |
16403 HAVE_MENUS=yes | 10517 HAVE_MENUS=yes |
16404 OTHER_FILES=ns-app | 10518 OTHER_FILES=ns-app |
16407 | 10521 |
16408 ### Use session management (-lSM -lICE) if available | 10522 ### Use session management (-lSM -lICE) if available |
16409 HAVE_X_SM=no | 10523 HAVE_X_SM=no |
16410 LIBXSM= | 10524 LIBXSM= |
16411 if test "${HAVE_X11}" = "yes"; then | 10525 if test "${HAVE_X11}" = "yes"; then |
16412 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | 10526 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" |
16413 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | 10527 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : |
16414 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; } | 10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 |
16415 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
16416 $as_echo_n "(cached) " >&6 | |
16417 fi | |
16418 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 | |
16419 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; } | |
16420 else | |
16421 # Is the header compilable? | |
16422 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 | |
16423 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; } | |
16424 cat >conftest.$ac_ext <<_ACEOF | |
16425 /* confdefs.h. */ | |
16426 _ACEOF | |
16427 cat confdefs.h >>conftest.$ac_ext | |
16428 cat >>conftest.$ac_ext <<_ACEOF | |
16429 /* end confdefs.h. */ | |
16430 $ac_includes_default | |
16431 #include <X11/SM/SMlib.h> | |
16432 _ACEOF | |
16433 rm -f conftest.$ac_objext | |
16434 if { (ac_try="$ac_compile" | |
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_compile") 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_objext; then | |
16451 ac_header_compiler=yes | |
16452 else | |
16453 $as_echo "$as_me: failed program was:" >&5 | |
16454 sed 's/^/| /' conftest.$ac_ext >&5 | |
16455 | |
16456 ac_header_compiler=no | |
16457 fi | |
16458 | |
16459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16460 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16461 $as_echo "$ac_header_compiler" >&6; } | |
16462 | |
16463 # Is the header present? | |
16464 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 | |
16465 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; } | |
16466 cat >conftest.$ac_ext <<_ACEOF | |
16467 /* confdefs.h. */ | |
16468 _ACEOF | |
16469 cat confdefs.h >>conftest.$ac_ext | |
16470 cat >>conftest.$ac_ext <<_ACEOF | |
16471 /* end confdefs.h. */ | |
16472 #include <X11/SM/SMlib.h> | |
16473 _ACEOF | |
16474 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
16475 case "(($ac_try" in | |
16476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16477 *) ac_try_echo=$ac_try;; | |
16478 esac | |
16479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16480 $as_echo "$ac_try_echo") >&5 | |
16481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
16482 ac_status=$? | |
16483 grep -v '^ *+' conftest.er1 >conftest.err | |
16484 rm -f conftest.er1 | |
16485 cat conftest.err >&5 | |
16486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16487 (exit $ac_status); } >/dev/null && { | |
16488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16489 test ! -s conftest.err | |
16490 }; then | |
16491 ac_header_preproc=yes | |
16492 else | |
16493 $as_echo "$as_me: failed program was:" >&5 | |
16494 sed 's/^/| /' conftest.$ac_ext >&5 | |
16495 | |
16496 ac_header_preproc=no | |
16497 fi | |
16498 | |
16499 rm -f conftest.err conftest.$ac_ext | |
16500 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16501 $as_echo "$ac_header_preproc" >&6; } | |
16502 | |
16503 # So? What about this header? | |
16504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16505 yes:no: ) | |
16506 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16507 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16508 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5 | |
16509 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;} | |
16510 ac_header_preproc=yes | |
16511 ;; | |
16512 no:yes:* ) | |
16513 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 | |
16514 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} | |
16515 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 | |
16516 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} | |
16517 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5 | |
16518 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;} | |
16519 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
16520 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
16521 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 | |
16522 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} | |
16523 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5 | |
16524 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;} | |
16525 | |
16526 ;; | |
16527 esac | |
16528 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
16529 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; } | |
16530 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
16531 $as_echo_n "(cached) " >&6 | |
16532 else | |
16533 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc | |
16534 fi | |
16535 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 | |
16536 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; } | |
16537 | |
16538 fi | |
16539 if test $ac_cv_header_X11_SM_SMlib_h = yes; then | |
16540 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 | |
16541 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } | 10529 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } |
16542 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then | 10530 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then : |
16543 $as_echo_n "(cached) " >&6 | 10531 $as_echo_n "(cached) " >&6 |
16544 else | 10532 else |
16545 ac_check_lib_save_LIBS=$LIBS | 10533 ac_check_lib_save_LIBS=$LIBS |
16546 LIBS="-lSM -lICE $LIBS" | 10534 LIBS="-lSM -lICE $LIBS" |
16547 cat >conftest.$ac_ext <<_ACEOF | 10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16548 /* confdefs.h. */ | |
16549 _ACEOF | |
16550 cat confdefs.h >>conftest.$ac_ext | |
16551 cat >>conftest.$ac_ext <<_ACEOF | |
16552 /* end confdefs.h. */ | 10536 /* end confdefs.h. */ |
16553 | 10537 |
16554 /* Override any GCC internal prototype to avoid an error. | 10538 /* Override any GCC internal prototype to avoid an error. |
16555 Use char because int might match the return type of a GCC | 10539 Use char because int might match the return type of a GCC |
16556 builtin and then its argument prototype would still apply. */ | 10540 builtin and then its argument prototype would still apply. */ |
16564 return SmcOpenConnection (); | 10548 return SmcOpenConnection (); |
16565 ; | 10549 ; |
16566 return 0; | 10550 return 0; |
16567 } | 10551 } |
16568 _ACEOF | 10552 _ACEOF |
16569 rm -f conftest.$ac_objext conftest$ac_exeext | 10553 if ac_fn_c_try_link "$LINENO"; then : |
16570 if { (ac_try="$ac_link" | |
16571 case "(($ac_try" in | |
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16573 *) ac_try_echo=$ac_try;; | |
16574 esac | |
16575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16576 $as_echo "$ac_try_echo") >&5 | |
16577 (eval "$ac_link") 2>conftest.er1 | |
16578 ac_status=$? | |
16579 grep -v '^ *+' conftest.er1 >conftest.err | |
16580 rm -f conftest.er1 | |
16581 cat conftest.err >&5 | |
16582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16583 (exit $ac_status); } && { | |
16584 test -z "$ac_c_werror_flag" || | |
16585 test ! -s conftest.err | |
16586 } && test -s conftest$ac_exeext && { | |
16587 test "$cross_compiling" = yes || | |
16588 $as_test_x conftest$ac_exeext | |
16589 }; then | |
16590 ac_cv_lib_SM_SmcOpenConnection=yes | 10554 ac_cv_lib_SM_SmcOpenConnection=yes |
16591 else | 10555 else |
16592 $as_echo "$as_me: failed program was:" >&5 | 10556 ac_cv_lib_SM_SmcOpenConnection=no |
16593 sed 's/^/| /' conftest.$ac_ext >&5 | 10557 fi |
16594 | 10558 rm -f core conftest.err conftest.$ac_objext \ |
16595 ac_cv_lib_SM_SmcOpenConnection=no | 10559 conftest$ac_exeext conftest.$ac_ext |
16596 fi | |
16597 | |
16598 rm -rf conftest.dSYM | |
16599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16600 conftest$ac_exeext conftest.$ac_ext | |
16601 LIBS=$ac_check_lib_save_LIBS | 10560 LIBS=$ac_check_lib_save_LIBS |
16602 fi | 10561 fi |
16603 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 | 10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
16604 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } | 10563 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } |
16605 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then | 10564 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then : |
16606 HAVE_X_SM=yes | 10565 HAVE_X_SM=yes |
16607 fi | 10566 fi |
16608 | 10567 |
16609 fi | 10568 fi |
16610 | 10569 |
16611 | 10570 |
16612 | 10571 |
16613 if test "${HAVE_X_SM}" = "yes"; then | 10572 if test "${HAVE_X_SM}" = "yes"; then |
16614 | 10573 |
16615 cat >>confdefs.h <<\_ACEOF | 10574 $as_echo "#define HAVE_X_SM 1" >>confdefs.h |
16616 #define HAVE_X_SM 1 | |
16617 _ACEOF | |
16618 | 10575 |
16619 LIBXSM="-lSM -lICE" | 10576 LIBXSM="-lSM -lICE" |
16620 case "$LIBS" in | 10577 case "$LIBS" in |
16621 *-lSM*) ;; | 10578 *-lSM*) ;; |
16622 *) LIBS="$LIBXSM $LIBS" ;; | 10579 *) LIBS="$LIBXSM $LIBS" ;; |
16624 fi | 10581 fi |
16625 fi | 10582 fi |
16626 | 10583 |
16627 | 10584 |
16628 # If netdb.h doesn't declare h_errno, we must declare it by hand. | 10585 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
16629 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 | 10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 |
16630 $as_echo_n "checking whether netdb declares h_errno... " >&6; } | 10587 $as_echo_n "checking whether netdb declares h_errno... " >&6; } |
16631 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | 10588 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then : |
16632 $as_echo_n "(cached) " >&6 | 10589 $as_echo_n "(cached) " >&6 |
16633 else | 10590 else |
16634 cat >conftest.$ac_ext <<_ACEOF | 10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16635 /* confdefs.h. */ | |
16636 _ACEOF | |
16637 cat confdefs.h >>conftest.$ac_ext | |
16638 cat >>conftest.$ac_ext <<_ACEOF | |
16639 /* end confdefs.h. */ | 10592 /* end confdefs.h. */ |
16640 #include <netdb.h> | 10593 #include <netdb.h> |
16641 int | 10594 int |
16642 main () | 10595 main () |
16643 { | 10596 { |
16644 return h_errno; | 10597 return h_errno; |
16645 ; | 10598 ; |
16646 return 0; | 10599 return 0; |
16647 } | 10600 } |
16648 _ACEOF | 10601 _ACEOF |
16649 rm -f conftest.$ac_objext conftest$ac_exeext | 10602 if ac_fn_c_try_link "$LINENO"; then : |
16650 if { (ac_try="$ac_link" | |
16651 case "(($ac_try" in | |
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16653 *) ac_try_echo=$ac_try;; | |
16654 esac | |
16655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16656 $as_echo "$ac_try_echo") >&5 | |
16657 (eval "$ac_link") 2>conftest.er1 | |
16658 ac_status=$? | |
16659 grep -v '^ *+' conftest.er1 >conftest.err | |
16660 rm -f conftest.er1 | |
16661 cat conftest.err >&5 | |
16662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16663 (exit $ac_status); } && { | |
16664 test -z "$ac_c_werror_flag" || | |
16665 test ! -s conftest.err | |
16666 } && test -s conftest$ac_exeext && { | |
16667 test "$cross_compiling" = yes || | |
16668 $as_test_x conftest$ac_exeext | |
16669 }; then | |
16670 emacs_cv_netdb_declares_h_errno=yes | 10603 emacs_cv_netdb_declares_h_errno=yes |
16671 else | 10604 else |
16672 $as_echo "$as_me: failed program was:" >&5 | 10605 emacs_cv_netdb_declares_h_errno=no |
16673 sed 's/^/| /' conftest.$ac_ext >&5 | 10606 fi |
16674 | 10607 rm -f core conftest.err conftest.$ac_objext \ |
16675 emacs_cv_netdb_declares_h_errno=no | 10608 conftest$ac_exeext conftest.$ac_ext |
16676 fi | 10609 fi |
16677 | 10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5 |
16678 rm -rf conftest.dSYM | |
16679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16680 conftest$ac_exeext conftest.$ac_ext | |
16681 fi | |
16682 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 | |
16683 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } | 10611 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } |
16684 if test $emacs_cv_netdb_declares_h_errno = yes; then | 10612 if test $emacs_cv_netdb_declares_h_errno = yes; then |
16685 | 10613 |
16686 cat >>confdefs.h <<\_ACEOF | 10614 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h |
16687 #define HAVE_H_ERRNO 1 | |
16688 _ACEOF | |
16689 | 10615 |
16690 fi | 10616 fi |
16691 | 10617 |
16692 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 10618 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
16693 # for constant arguments. Useless! | 10619 # for constant arguments. Useless! |
16694 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 | 10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
16695 $as_echo_n "checking for working alloca.h... " >&6; } | 10621 $as_echo_n "checking for working alloca.h... " >&6; } |
16696 if test "${ac_cv_working_alloca_h+set}" = set; then | 10622 if test "${ac_cv_working_alloca_h+set}" = set; then : |
16697 $as_echo_n "(cached) " >&6 | 10623 $as_echo_n "(cached) " >&6 |
16698 else | 10624 else |
16699 cat >conftest.$ac_ext <<_ACEOF | 10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16700 /* confdefs.h. */ | |
16701 _ACEOF | |
16702 cat confdefs.h >>conftest.$ac_ext | |
16703 cat >>conftest.$ac_ext <<_ACEOF | |
16704 /* end confdefs.h. */ | 10626 /* end confdefs.h. */ |
16705 #include <alloca.h> | 10627 #include <alloca.h> |
16706 int | 10628 int |
16707 main () | 10629 main () |
16708 { | 10630 { |
16710 if (p) return 0; | 10632 if (p) return 0; |
16711 ; | 10633 ; |
16712 return 0; | 10634 return 0; |
16713 } | 10635 } |
16714 _ACEOF | 10636 _ACEOF |
16715 rm -f conftest.$ac_objext conftest$ac_exeext | 10637 if ac_fn_c_try_link "$LINENO"; then : |
16716 if { (ac_try="$ac_link" | |
16717 case "(($ac_try" in | |
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16719 *) ac_try_echo=$ac_try;; | |
16720 esac | |
16721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16722 $as_echo "$ac_try_echo") >&5 | |
16723 (eval "$ac_link") 2>conftest.er1 | |
16724 ac_status=$? | |
16725 grep -v '^ *+' conftest.er1 >conftest.err | |
16726 rm -f conftest.er1 | |
16727 cat conftest.err >&5 | |
16728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16729 (exit $ac_status); } && { | |
16730 test -z "$ac_c_werror_flag" || | |
16731 test ! -s conftest.err | |
16732 } && test -s conftest$ac_exeext && { | |
16733 test "$cross_compiling" = yes || | |
16734 $as_test_x conftest$ac_exeext | |
16735 }; then | |
16736 ac_cv_working_alloca_h=yes | 10638 ac_cv_working_alloca_h=yes |
16737 else | 10639 else |
16738 $as_echo "$as_me: failed program was:" >&5 | 10640 ac_cv_working_alloca_h=no |
16739 sed 's/^/| /' conftest.$ac_ext >&5 | 10641 fi |
16740 | 10642 rm -f core conftest.err conftest.$ac_objext \ |
16741 ac_cv_working_alloca_h=no | 10643 conftest$ac_exeext conftest.$ac_ext |
16742 fi | 10644 fi |
16743 | 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
16744 rm -rf conftest.dSYM | |
16745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16746 conftest$ac_exeext conftest.$ac_ext | |
16747 fi | |
16748 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
16749 $as_echo "$ac_cv_working_alloca_h" >&6; } | 10646 $as_echo "$ac_cv_working_alloca_h" >&6; } |
16750 if test $ac_cv_working_alloca_h = yes; then | 10647 if test $ac_cv_working_alloca_h = yes; then |
16751 | 10648 |
16752 cat >>confdefs.h <<\_ACEOF | 10649 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
16753 #define HAVE_ALLOCA_H 1 | 10650 |
16754 _ACEOF | 10651 fi |
16755 | 10652 |
16756 fi | 10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
16757 | |
16758 { $as_echo "$as_me:$LINENO: checking for alloca" >&5 | |
16759 $as_echo_n "checking for alloca... " >&6; } | 10654 $as_echo_n "checking for alloca... " >&6; } |
16760 if test "${ac_cv_func_alloca_works+set}" = set; then | 10655 if test "${ac_cv_func_alloca_works+set}" = set; then : |
16761 $as_echo_n "(cached) " >&6 | 10656 $as_echo_n "(cached) " >&6 |
16762 else | 10657 else |
16763 cat >conftest.$ac_ext <<_ACEOF | 10658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16764 /* confdefs.h. */ | |
16765 _ACEOF | |
16766 cat confdefs.h >>conftest.$ac_ext | |
16767 cat >>conftest.$ac_ext <<_ACEOF | |
16768 /* end confdefs.h. */ | 10659 /* end confdefs.h. */ |
16769 #ifdef __GNUC__ | 10660 #ifdef __GNUC__ |
16770 # define alloca __builtin_alloca | 10661 # define alloca __builtin_alloca |
16771 #else | 10662 #else |
16772 # ifdef _MSC_VER | 10663 # ifdef _MSC_VER |
16794 if (p) return 0; | 10685 if (p) return 0; |
16795 ; | 10686 ; |
16796 return 0; | 10687 return 0; |
16797 } | 10688 } |
16798 _ACEOF | 10689 _ACEOF |
16799 rm -f conftest.$ac_objext conftest$ac_exeext | 10690 if ac_fn_c_try_link "$LINENO"; then : |
16800 if { (ac_try="$ac_link" | |
16801 case "(($ac_try" in | |
16802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16803 *) ac_try_echo=$ac_try;; | |
16804 esac | |
16805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16806 $as_echo "$ac_try_echo") >&5 | |
16807 (eval "$ac_link") 2>conftest.er1 | |
16808 ac_status=$? | |
16809 grep -v '^ *+' conftest.er1 >conftest.err | |
16810 rm -f conftest.er1 | |
16811 cat conftest.err >&5 | |
16812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16813 (exit $ac_status); } && { | |
16814 test -z "$ac_c_werror_flag" || | |
16815 test ! -s conftest.err | |
16816 } && test -s conftest$ac_exeext && { | |
16817 test "$cross_compiling" = yes || | |
16818 $as_test_x conftest$ac_exeext | |
16819 }; then | |
16820 ac_cv_func_alloca_works=yes | 10691 ac_cv_func_alloca_works=yes |
16821 else | 10692 else |
16822 $as_echo "$as_me: failed program was:" >&5 | 10693 ac_cv_func_alloca_works=no |
16823 sed 's/^/| /' conftest.$ac_ext >&5 | 10694 fi |
16824 | 10695 rm -f core conftest.err conftest.$ac_objext \ |
16825 ac_cv_func_alloca_works=no | 10696 conftest$ac_exeext conftest.$ac_ext |
16826 fi | 10697 fi |
16827 | 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
16828 rm -rf conftest.dSYM | |
16829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16830 conftest$ac_exeext conftest.$ac_ext | |
16831 fi | |
16832 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
16833 $as_echo "$ac_cv_func_alloca_works" >&6; } | 10699 $as_echo "$ac_cv_func_alloca_works" >&6; } |
16834 | 10700 |
16835 if test $ac_cv_func_alloca_works = yes; then | 10701 if test $ac_cv_func_alloca_works = yes; then |
16836 | 10702 |
16837 cat >>confdefs.h <<\_ACEOF | 10703 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
16838 #define HAVE_ALLOCA 1 | |
16839 _ACEOF | |
16840 | 10704 |
16841 else | 10705 else |
16842 # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 10706 # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
16843 # that cause trouble. Some versions do not even contain alloca or | 10707 # that cause trouble. Some versions do not even contain alloca or |
16844 # contain a buggy version. If you still want to use their alloca, | 10708 # contain a buggy version. If you still want to use their alloca, |
16845 # use ar to extract alloca.o from them instead of compiling alloca.c. | 10709 # use ar to extract alloca.o from them instead of compiling alloca.c. |
16846 | 10710 |
16847 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | 10711 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
16848 | 10712 |
16849 cat >>confdefs.h <<\_ACEOF | 10713 $as_echo "#define C_ALLOCA 1" >>confdefs.h |
16850 #define C_ALLOCA 1 | 10714 |
16851 _ACEOF | 10715 |
16852 | 10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
16853 | |
16854 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
16855 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | 10717 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
16856 if test "${ac_cv_os_cray+set}" = set; then | 10718 if test "${ac_cv_os_cray+set}" = set; then : |
16857 $as_echo_n "(cached) " >&6 | 10719 $as_echo_n "(cached) " >&6 |
16858 else | 10720 else |
16859 cat >conftest.$ac_ext <<_ACEOF | 10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16860 /* confdefs.h. */ | |
16861 _ACEOF | |
16862 cat confdefs.h >>conftest.$ac_ext | |
16863 cat >>conftest.$ac_ext <<_ACEOF | |
16864 /* end confdefs.h. */ | 10722 /* end confdefs.h. */ |
16865 #if defined CRAY && ! defined CRAY2 | 10723 #if defined CRAY && ! defined CRAY2 |
16866 webecray | 10724 webecray |
16867 #else | 10725 #else |
16868 wenotbecray | 10726 wenotbecray |
16869 #endif | 10727 #endif |
16870 | 10728 |
16871 _ACEOF | 10729 _ACEOF |
16872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 10730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
16873 $EGREP "webecray" >/dev/null 2>&1; then | 10731 $EGREP "webecray" >/dev/null 2>&1; then : |
16874 ac_cv_os_cray=yes | 10732 ac_cv_os_cray=yes |
16875 else | 10733 else |
16876 ac_cv_os_cray=no | 10734 ac_cv_os_cray=no |
16877 fi | 10735 fi |
16878 rm -f conftest* | 10736 rm -f conftest* |
16879 | 10737 |
16880 fi | 10738 fi |
16881 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | 10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
16882 $as_echo "$ac_cv_os_cray" >&6; } | 10740 $as_echo "$ac_cv_os_cray" >&6; } |
16883 if test $ac_cv_os_cray = yes; then | 10741 if test $ac_cv_os_cray = yes; then |
16884 for ac_func in _getb67 GETB67 getb67; do | 10742 for ac_func in _getb67 GETB67 getb67; do |
16885 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 10743 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16886 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 10744 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
16887 $as_echo_n "checking for $ac_func... " >&6; } | 10745 eval as_val=\$$as_ac_var |
16888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 10746 if test "x$as_val" = x""yes; then : |
16889 $as_echo_n "(cached) " >&6 | |
16890 else | |
16891 cat >conftest.$ac_ext <<_ACEOF | |
16892 /* confdefs.h. */ | |
16893 _ACEOF | |
16894 cat confdefs.h >>conftest.$ac_ext | |
16895 cat >>conftest.$ac_ext <<_ACEOF | |
16896 /* end confdefs.h. */ | |
16897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16898 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16899 #define $ac_func innocuous_$ac_func | |
16900 | |
16901 /* System header to define __stub macros and hopefully few prototypes, | |
16902 which can conflict with char $ac_func (); below. | |
16903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16904 <limits.h> exists even on freestanding compilers. */ | |
16905 | |
16906 #ifdef __STDC__ | |
16907 # include <limits.h> | |
16908 #else | |
16909 # include <assert.h> | |
16910 #endif | |
16911 | |
16912 #undef $ac_func | |
16913 | |
16914 /* Override any GCC internal prototype to avoid an error. | |
16915 Use char because int might match the return type of a GCC | |
16916 builtin and then its argument prototype would still apply. */ | |
16917 #ifdef __cplusplus | |
16918 extern "C" | |
16919 #endif | |
16920 char $ac_func (); | |
16921 /* The GNU C library defines this for functions which it implements | |
16922 to always fail with ENOSYS. Some functions are actually named | |
16923 something starting with __ and the normal name is an alias. */ | |
16924 #if defined __stub_$ac_func || defined __stub___$ac_func | |
16925 choke me | |
16926 #endif | |
16927 | |
16928 int | |
16929 main () | |
16930 { | |
16931 return $ac_func (); | |
16932 ; | |
16933 return 0; | |
16934 } | |
16935 _ACEOF | |
16936 rm -f conftest.$ac_objext conftest$ac_exeext | |
16937 if { (ac_try="$ac_link" | |
16938 case "(($ac_try" in | |
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16940 *) ac_try_echo=$ac_try;; | |
16941 esac | |
16942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16943 $as_echo "$ac_try_echo") >&5 | |
16944 (eval "$ac_link") 2>conftest.er1 | |
16945 ac_status=$? | |
16946 grep -v '^ *+' conftest.er1 >conftest.err | |
16947 rm -f conftest.er1 | |
16948 cat conftest.err >&5 | |
16949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16950 (exit $ac_status); } && { | |
16951 test -z "$ac_c_werror_flag" || | |
16952 test ! -s conftest.err | |
16953 } && test -s conftest$ac_exeext && { | |
16954 test "$cross_compiling" = yes || | |
16955 $as_test_x conftest$ac_exeext | |
16956 }; then | |
16957 eval "$as_ac_var=yes" | |
16958 else | |
16959 $as_echo "$as_me: failed program was:" >&5 | |
16960 sed 's/^/| /' conftest.$ac_ext >&5 | |
16961 | |
16962 eval "$as_ac_var=no" | |
16963 fi | |
16964 | |
16965 rm -rf conftest.dSYM | |
16966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16967 conftest$ac_exeext conftest.$ac_ext | |
16968 fi | |
16969 ac_res=`eval 'as_val=${'$as_ac_var'} | |
16970 $as_echo "$as_val"'` | |
16971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16972 $as_echo "$ac_res" >&6; } | |
16973 if test `eval 'as_val=${'$as_ac_var'} | |
16974 $as_echo "$as_val"'` = yes; then | |
16975 | 10747 |
16976 cat >>confdefs.h <<_ACEOF | 10748 cat >>confdefs.h <<_ACEOF |
16977 #define CRAY_STACKSEG_END $ac_func | 10749 #define CRAY_STACKSEG_END $ac_func |
16978 _ACEOF | 10750 _ACEOF |
16979 | 10751 |
16981 fi | 10753 fi |
16982 | 10754 |
16983 done | 10755 done |
16984 fi | 10756 fi |
16985 | 10757 |
16986 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
16987 $as_echo_n "checking stack direction for C alloca... " >&6; } | 10759 $as_echo_n "checking stack direction for C alloca... " >&6; } |
16988 if test "${ac_cv_c_stack_direction+set}" = set; then | 10760 if test "${ac_cv_c_stack_direction+set}" = set; then : |
16989 $as_echo_n "(cached) " >&6 | 10761 $as_echo_n "(cached) " >&6 |
16990 else | 10762 else |
16991 if test "$cross_compiling" = yes; then | 10763 if test "$cross_compiling" = yes; then : |
16992 ac_cv_c_stack_direction=0 | 10764 ac_cv_c_stack_direction=0 |
16993 else | 10765 else |
16994 cat >conftest.$ac_ext <<_ACEOF | 10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16995 /* confdefs.h. */ | |
16996 _ACEOF | |
16997 cat confdefs.h >>conftest.$ac_ext | |
16998 cat >>conftest.$ac_ext <<_ACEOF | |
16999 /* end confdefs.h. */ | 10767 /* end confdefs.h. */ |
17000 $ac_includes_default | 10768 $ac_includes_default |
17001 int | 10769 int |
17002 find_stack_direction () | 10770 find_stack_direction () |
17003 { | 10771 { |
17016 main () | 10784 main () |
17017 { | 10785 { |
17018 return find_stack_direction () < 0; | 10786 return find_stack_direction () < 0; |
17019 } | 10787 } |
17020 _ACEOF | 10788 _ACEOF |
17021 rm -f conftest$ac_exeext | 10789 if ac_fn_c_try_run "$LINENO"; then : |
17022 if { (ac_try="$ac_link" | |
17023 case "(($ac_try" in | |
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17025 *) ac_try_echo=$ac_try;; | |
17026 esac | |
17027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17028 $as_echo "$ac_try_echo") >&5 | |
17029 (eval "$ac_link") 2>&5 | |
17030 ac_status=$? | |
17031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17033 { (case "(($ac_try" in | |
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17035 *) ac_try_echo=$ac_try;; | |
17036 esac | |
17037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17038 $as_echo "$ac_try_echo") >&5 | |
17039 (eval "$ac_try") 2>&5 | |
17040 ac_status=$? | |
17041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17042 (exit $ac_status); }; }; then | |
17043 ac_cv_c_stack_direction=1 | 10790 ac_cv_c_stack_direction=1 |
17044 else | 10791 else |
17045 $as_echo "$as_me: program exited with status $ac_status" >&5 | 10792 ac_cv_c_stack_direction=-1 |
17046 $as_echo "$as_me: failed program was:" >&5 | 10793 fi |
17047 sed 's/^/| /' conftest.$ac_ext >&5 | 10794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
17048 | 10795 conftest.$ac_objext conftest.beam conftest.$ac_ext |
17049 ( exit $ac_status ) | 10796 fi |
17050 ac_cv_c_stack_direction=-1 | 10797 |
17051 fi | 10798 fi |
17052 rm -rf conftest.dSYM | 10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
17053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
17054 fi | |
17055 | |
17056 | |
17057 fi | |
17058 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
17059 $as_echo "$ac_cv_c_stack_direction" >&6; } | 10800 $as_echo "$ac_cv_c_stack_direction" >&6; } |
17060 | |
17061 cat >>confdefs.h <<_ACEOF | 10801 cat >>confdefs.h <<_ACEOF |
17062 #define STACK_DIRECTION $ac_cv_c_stack_direction | 10802 #define STACK_DIRECTION $ac_cv_c_stack_direction |
17063 _ACEOF | 10803 _ACEOF |
17064 | 10804 |
17065 | 10805 |
17066 fi | 10806 fi |
17067 | 10807 |
17068 | 10808 |
17069 if test x"$ac_cv_func_alloca_works" != xyes; then | 10809 if test x"$ac_cv_func_alloca_works" != xyes; then |
17070 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5 | 10810 as_fn_error "a system implementation of alloca is required " "$LINENO" 5 |
17071 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;} | |
17072 { (exit 1); exit 1; }; } | |
17073 fi | 10811 fi |
17074 | 10812 |
17075 # fmod, logb, and frexp are found in -lm on most systems. | 10813 # fmod, logb, and frexp are found in -lm on most systems. |
17076 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | 10814 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
17077 | 10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 |
17078 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 | |
17079 $as_echo_n "checking for sqrt in -lm... " >&6; } | 10816 $as_echo_n "checking for sqrt in -lm... " >&6; } |
17080 if test "${ac_cv_lib_m_sqrt+set}" = set; then | 10817 if test "${ac_cv_lib_m_sqrt+set}" = set; then : |
17081 $as_echo_n "(cached) " >&6 | 10818 $as_echo_n "(cached) " >&6 |
17082 else | 10819 else |
17083 ac_check_lib_save_LIBS=$LIBS | 10820 ac_check_lib_save_LIBS=$LIBS |
17084 LIBS="-lm $LIBS" | 10821 LIBS="-lm $LIBS" |
17085 cat >conftest.$ac_ext <<_ACEOF | 10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17086 /* confdefs.h. */ | |
17087 _ACEOF | |
17088 cat confdefs.h >>conftest.$ac_ext | |
17089 cat >>conftest.$ac_ext <<_ACEOF | |
17090 /* end confdefs.h. */ | 10823 /* end confdefs.h. */ |
17091 | 10824 |
17092 /* Override any GCC internal prototype to avoid an error. | 10825 /* Override any GCC internal prototype to avoid an error. |
17093 Use char because int might match the return type of a GCC | 10826 Use char because int might match the return type of a GCC |
17094 builtin and then its argument prototype would still apply. */ | 10827 builtin and then its argument prototype would still apply. */ |
17102 return sqrt (); | 10835 return sqrt (); |
17103 ; | 10836 ; |
17104 return 0; | 10837 return 0; |
17105 } | 10838 } |
17106 _ACEOF | 10839 _ACEOF |
17107 rm -f conftest.$ac_objext conftest$ac_exeext | 10840 if ac_fn_c_try_link "$LINENO"; then : |
17108 if { (ac_try="$ac_link" | |
17109 case "(($ac_try" in | |
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17111 *) ac_try_echo=$ac_try;; | |
17112 esac | |
17113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17114 $as_echo "$ac_try_echo") >&5 | |
17115 (eval "$ac_link") 2>conftest.er1 | |
17116 ac_status=$? | |
17117 grep -v '^ *+' conftest.er1 >conftest.err | |
17118 rm -f conftest.er1 | |
17119 cat conftest.err >&5 | |
17120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17121 (exit $ac_status); } && { | |
17122 test -z "$ac_c_werror_flag" || | |
17123 test ! -s conftest.err | |
17124 } && test -s conftest$ac_exeext && { | |
17125 test "$cross_compiling" = yes || | |
17126 $as_test_x conftest$ac_exeext | |
17127 }; then | |
17128 ac_cv_lib_m_sqrt=yes | 10841 ac_cv_lib_m_sqrt=yes |
17129 else | 10842 else |
17130 $as_echo "$as_me: failed program was:" >&5 | 10843 ac_cv_lib_m_sqrt=no |
17131 sed 's/^/| /' conftest.$ac_ext >&5 | 10844 fi |
17132 | 10845 rm -f core conftest.err conftest.$ac_objext \ |
17133 ac_cv_lib_m_sqrt=no | 10846 conftest$ac_exeext conftest.$ac_ext |
17134 fi | |
17135 | |
17136 rm -rf conftest.dSYM | |
17137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17138 conftest$ac_exeext conftest.$ac_ext | |
17139 LIBS=$ac_check_lib_save_LIBS | 10847 LIBS=$ac_check_lib_save_LIBS |
17140 fi | 10848 fi |
17141 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 | 10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 |
17142 $as_echo "$ac_cv_lib_m_sqrt" >&6; } | 10850 $as_echo "$ac_cv_lib_m_sqrt" >&6; } |
17143 if test $ac_cv_lib_m_sqrt = yes; then | 10851 if test "x$ac_cv_lib_m_sqrt" = x""yes; then : |
17144 cat >>confdefs.h <<_ACEOF | 10852 cat >>confdefs.h <<_ACEOF |
17145 #define HAVE_LIBM 1 | 10853 #define HAVE_LIBM 1 |
17146 _ACEOF | 10854 _ACEOF |
17147 | 10855 |
17148 LIBS="-lm $LIBS" | 10856 LIBS="-lm $LIBS" |
17150 fi | 10858 fi |
17151 | 10859 |
17152 | 10860 |
17153 # Check for mail-locking functions in a "mail" library. Probably this should | 10861 # Check for mail-locking functions in a "mail" library. Probably this should |
17154 # have the same check as for liblockfile below. | 10862 # have the same check as for liblockfile below. |
17155 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 | 10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5 |
17156 $as_echo_n "checking for maillock in -lmail... " >&6; } | 10864 $as_echo_n "checking for maillock in -lmail... " >&6; } |
17157 if test "${ac_cv_lib_mail_maillock+set}" = set; then | 10865 if test "${ac_cv_lib_mail_maillock+set}" = set; then : |
17158 $as_echo_n "(cached) " >&6 | 10866 $as_echo_n "(cached) " >&6 |
17159 else | 10867 else |
17160 ac_check_lib_save_LIBS=$LIBS | 10868 ac_check_lib_save_LIBS=$LIBS |
17161 LIBS="-lmail $LIBS" | 10869 LIBS="-lmail $LIBS" |
17162 cat >conftest.$ac_ext <<_ACEOF | 10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17163 /* confdefs.h. */ | |
17164 _ACEOF | |
17165 cat confdefs.h >>conftest.$ac_ext | |
17166 cat >>conftest.$ac_ext <<_ACEOF | |
17167 /* end confdefs.h. */ | 10871 /* end confdefs.h. */ |
17168 | 10872 |
17169 /* Override any GCC internal prototype to avoid an error. | 10873 /* Override any GCC internal prototype to avoid an error. |
17170 Use char because int might match the return type of a GCC | 10874 Use char because int might match the return type of a GCC |
17171 builtin and then its argument prototype would still apply. */ | 10875 builtin and then its argument prototype would still apply. */ |
17179 return maillock (); | 10883 return maillock (); |
17180 ; | 10884 ; |
17181 return 0; | 10885 return 0; |
17182 } | 10886 } |
17183 _ACEOF | 10887 _ACEOF |
17184 rm -f conftest.$ac_objext conftest$ac_exeext | 10888 if ac_fn_c_try_link "$LINENO"; then : |
17185 if { (ac_try="$ac_link" | |
17186 case "(($ac_try" in | |
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17188 *) ac_try_echo=$ac_try;; | |
17189 esac | |
17190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17191 $as_echo "$ac_try_echo") >&5 | |
17192 (eval "$ac_link") 2>conftest.er1 | |
17193 ac_status=$? | |
17194 grep -v '^ *+' conftest.er1 >conftest.err | |
17195 rm -f conftest.er1 | |
17196 cat conftest.err >&5 | |
17197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17198 (exit $ac_status); } && { | |
17199 test -z "$ac_c_werror_flag" || | |
17200 test ! -s conftest.err | |
17201 } && test -s conftest$ac_exeext && { | |
17202 test "$cross_compiling" = yes || | |
17203 $as_test_x conftest$ac_exeext | |
17204 }; then | |
17205 ac_cv_lib_mail_maillock=yes | 10889 ac_cv_lib_mail_maillock=yes |
17206 else | 10890 else |
17207 $as_echo "$as_me: failed program was:" >&5 | 10891 ac_cv_lib_mail_maillock=no |
17208 sed 's/^/| /' conftest.$ac_ext >&5 | 10892 fi |
17209 | 10893 rm -f core conftest.err conftest.$ac_objext \ |
17210 ac_cv_lib_mail_maillock=no | 10894 conftest$ac_exeext conftest.$ac_ext |
17211 fi | |
17212 | |
17213 rm -rf conftest.dSYM | |
17214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17215 conftest$ac_exeext conftest.$ac_ext | |
17216 LIBS=$ac_check_lib_save_LIBS | 10895 LIBS=$ac_check_lib_save_LIBS |
17217 fi | 10896 fi |
17218 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 | 10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5 |
17219 $as_echo "$ac_cv_lib_mail_maillock" >&6; } | 10898 $as_echo "$ac_cv_lib_mail_maillock" >&6; } |
17220 if test $ac_cv_lib_mail_maillock = yes; then | 10899 if test "x$ac_cv_lib_mail_maillock" = x""yes; then : |
17221 have_mail=yes | 10900 have_mail=yes |
17222 else | 10901 else |
17223 have_mail=no | 10902 have_mail=no |
17224 fi | 10903 fi |
17225 | 10904 |
17226 if test $have_mail = yes; then | 10905 if test $have_mail = yes; then |
17227 LIBS_MAIL=-lmail | 10906 LIBS_MAIL=-lmail |
17228 LIBS="$LIBS_MAIL $LIBS" | 10907 LIBS="$LIBS_MAIL $LIBS" |
17229 | 10908 |
17230 cat >>confdefs.h <<\_ACEOF | 10909 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h |
17231 #define HAVE_LIBMAIL 1 | |
17232 _ACEOF | |
17233 | 10910 |
17234 else | 10911 else |
17235 LIBS_MAIL= | 10912 LIBS_MAIL= |
17236 fi | 10913 fi |
17237 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 | 10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5 |
17238 $as_echo_n "checking for maillock in -llockfile... " >&6; } | 10915 $as_echo_n "checking for maillock in -llockfile... " >&6; } |
17239 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | 10916 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then : |
17240 $as_echo_n "(cached) " >&6 | 10917 $as_echo_n "(cached) " >&6 |
17241 else | 10918 else |
17242 ac_check_lib_save_LIBS=$LIBS | 10919 ac_check_lib_save_LIBS=$LIBS |
17243 LIBS="-llockfile $LIBS" | 10920 LIBS="-llockfile $LIBS" |
17244 cat >conftest.$ac_ext <<_ACEOF | 10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17245 /* confdefs.h. */ | |
17246 _ACEOF | |
17247 cat confdefs.h >>conftest.$ac_ext | |
17248 cat >>conftest.$ac_ext <<_ACEOF | |
17249 /* end confdefs.h. */ | 10922 /* end confdefs.h. */ |
17250 | 10923 |
17251 /* Override any GCC internal prototype to avoid an error. | 10924 /* Override any GCC internal prototype to avoid an error. |
17252 Use char because int might match the return type of a GCC | 10925 Use char because int might match the return type of a GCC |
17253 builtin and then its argument prototype would still apply. */ | 10926 builtin and then its argument prototype would still apply. */ |
17261 return maillock (); | 10934 return maillock (); |
17262 ; | 10935 ; |
17263 return 0; | 10936 return 0; |
17264 } | 10937 } |
17265 _ACEOF | 10938 _ACEOF |
17266 rm -f conftest.$ac_objext conftest$ac_exeext | 10939 if ac_fn_c_try_link "$LINENO"; then : |
17267 if { (ac_try="$ac_link" | |
17268 case "(($ac_try" in | |
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17270 *) ac_try_echo=$ac_try;; | |
17271 esac | |
17272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17273 $as_echo "$ac_try_echo") >&5 | |
17274 (eval "$ac_link") 2>conftest.er1 | |
17275 ac_status=$? | |
17276 grep -v '^ *+' conftest.er1 >conftest.err | |
17277 rm -f conftest.er1 | |
17278 cat conftest.err >&5 | |
17279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17280 (exit $ac_status); } && { | |
17281 test -z "$ac_c_werror_flag" || | |
17282 test ! -s conftest.err | |
17283 } && test -s conftest$ac_exeext && { | |
17284 test "$cross_compiling" = yes || | |
17285 $as_test_x conftest$ac_exeext | |
17286 }; then | |
17287 ac_cv_lib_lockfile_maillock=yes | 10940 ac_cv_lib_lockfile_maillock=yes |
17288 else | 10941 else |
17289 $as_echo "$as_me: failed program was:" >&5 | 10942 ac_cv_lib_lockfile_maillock=no |
17290 sed 's/^/| /' conftest.$ac_ext >&5 | 10943 fi |
17291 | 10944 rm -f core conftest.err conftest.$ac_objext \ |
17292 ac_cv_lib_lockfile_maillock=no | 10945 conftest$ac_exeext conftest.$ac_ext |
17293 fi | |
17294 | |
17295 rm -rf conftest.dSYM | |
17296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17297 conftest$ac_exeext conftest.$ac_ext | |
17298 LIBS=$ac_check_lib_save_LIBS | 10946 LIBS=$ac_check_lib_save_LIBS |
17299 fi | 10947 fi |
17300 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 | 10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5 |
17301 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; } | 10949 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; } |
17302 if test $ac_cv_lib_lockfile_maillock = yes; then | 10950 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then : |
17303 have_lockfile=yes | 10951 have_lockfile=yes |
17304 else | 10952 else |
17305 have_lockfile=no | 10953 have_lockfile=no |
17306 fi | 10954 fi |
17307 | 10955 |
17308 if test $have_lockfile = yes; then | 10956 if test $have_lockfile = yes; then |
17309 LIBS_MAIL=-llockfile | 10957 LIBS_MAIL=-llockfile |
17310 LIBS="$LIBS_MAIL $LIBS" | 10958 LIBS="$LIBS_MAIL $LIBS" |
17311 | 10959 |
17312 cat >>confdefs.h <<\_ACEOF | 10960 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h |
17313 #define HAVE_LIBLOCKFILE 1 | |
17314 _ACEOF | |
17315 | 10961 |
17316 else | 10962 else |
17317 # If we have the shared liblockfile, assume we must use it for mail | 10963 # If we have the shared liblockfile, assume we must use it for mail |
17318 # locking (e.g. Debian). If we couldn't link against liblockfile | 10964 # locking (e.g. Debian). If we couldn't link against liblockfile |
17319 # (no liblockfile.a installed), ensure that we don't need to. | 10965 # (no liblockfile.a installed), ensure that we don't need to. |
17320 # Extract the first word of "liblockfile.so", so it can be a program name with args. | 10966 # Extract the first word of "liblockfile.so", so it can be a program name with args. |
17321 set dummy liblockfile.so; ac_word=$2 | 10967 set dummy liblockfile.so; ac_word=$2 |
17322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17323 $as_echo_n "checking for $ac_word... " >&6; } | 10969 $as_echo_n "checking for $ac_word... " >&6; } |
17324 if test "${ac_cv_prog_liblockfile+set}" = set; then | 10970 if test "${ac_cv_prog_liblockfile+set}" = set; then : |
17325 $as_echo_n "(cached) " >&6 | 10971 $as_echo_n "(cached) " >&6 |
17326 else | 10972 else |
17327 if test -n "$liblockfile"; then | 10973 if test -n "$liblockfile"; then |
17328 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | 10974 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. |
17329 else | 10975 else |
17331 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | 10977 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
17332 for as_dir in $as_dummy | 10978 for as_dir in $as_dummy |
17333 do | 10979 do |
17334 IFS=$as_save_IFS | 10980 IFS=$as_save_IFS |
17335 test -z "$as_dir" && as_dir=. | 10981 test -z "$as_dir" && as_dir=. |
17336 for ac_exec_ext in '' $ac_executable_extensions; do | 10982 for ac_exec_ext in '' $ac_executable_extensions; do |
17337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 10983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
17338 ac_cv_prog_liblockfile="yes" | 10984 ac_cv_prog_liblockfile="yes" |
17339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
17340 break 2 | 10986 break 2 |
17341 fi | 10987 fi |
17342 done | 10988 done |
17343 done | 10989 done |
17344 IFS=$as_save_IFS | 10990 IFS=$as_save_IFS |
17345 | 10991 |
17346 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | 10992 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" |
17347 fi | 10993 fi |
17348 fi | 10994 fi |
17349 liblockfile=$ac_cv_prog_liblockfile | 10995 liblockfile=$ac_cv_prog_liblockfile |
17350 if test -n "$liblockfile"; then | 10996 if test -n "$liblockfile"; then |
17351 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5 | 10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5 |
17352 $as_echo "$liblockfile" >&6; } | 10998 $as_echo "$liblockfile" >&6; } |
17353 else | 10999 else |
17354 { $as_echo "$as_me:$LINENO: result: no" >&5 | 11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17355 $as_echo "no" >&6; } | 11001 $as_echo "no" >&6; } |
17356 fi | 11002 fi |
17357 | 11003 |
17358 | 11004 |
17359 if test $ac_cv_prog_liblockfile = yes; then | 11005 if test $ac_cv_prog_liblockfile = yes; then |
17360 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. | 11006 as_fn_error "Shared liblockfile found but can't link against it. |
17361 This probably means that movemail could lose mail. | 11007 This probably means that movemail could lose mail. |
17362 There may be a \`development' package to install containing liblockfile." >&5 | 11008 There may be a \`development' package to install containing liblockfile." "$LINENO" 5 |
17363 $as_echo "$as_me: error: Shared liblockfile found but can't link against it. | |
17364 This probably means that movemail could lose mail. | |
17365 There may be a \`development' package to install containing liblockfile." >&2;} | |
17366 { (exit 1); exit 1; }; } | |
17367 fi | 11009 fi |
17368 fi | 11010 fi |
17369 | |
17370 for ac_func in touchlock | 11011 for ac_func in touchlock |
17371 do | 11012 do : |
17372 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11013 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock" |
17373 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 11014 if test "x$ac_cv_func_touchlock" = x""yes; then : |
17374 $as_echo_n "checking for $ac_func... " >&6; } | |
17375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
17376 $as_echo_n "(cached) " >&6 | |
17377 else | |
17378 cat >conftest.$ac_ext <<_ACEOF | |
17379 /* confdefs.h. */ | |
17380 _ACEOF | |
17381 cat confdefs.h >>conftest.$ac_ext | |
17382 cat >>conftest.$ac_ext <<_ACEOF | |
17383 /* end confdefs.h. */ | |
17384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17385 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17386 #define $ac_func innocuous_$ac_func | |
17387 | |
17388 /* System header to define __stub macros and hopefully few prototypes, | |
17389 which can conflict with char $ac_func (); below. | |
17390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17391 <limits.h> exists even on freestanding compilers. */ | |
17392 | |
17393 #ifdef __STDC__ | |
17394 # include <limits.h> | |
17395 #else | |
17396 # include <assert.h> | |
17397 #endif | |
17398 | |
17399 #undef $ac_func | |
17400 | |
17401 /* Override any GCC internal prototype to avoid an error. | |
17402 Use char because int might match the return type of a GCC | |
17403 builtin and then its argument prototype would still apply. */ | |
17404 #ifdef __cplusplus | |
17405 extern "C" | |
17406 #endif | |
17407 char $ac_func (); | |
17408 /* The GNU C library defines this for functions which it implements | |
17409 to always fail with ENOSYS. Some functions are actually named | |
17410 something starting with __ and the normal name is an alias. */ | |
17411 #if defined __stub_$ac_func || defined __stub___$ac_func | |
17412 choke me | |
17413 #endif | |
17414 | |
17415 int | |
17416 main () | |
17417 { | |
17418 return $ac_func (); | |
17419 ; | |
17420 return 0; | |
17421 } | |
17422 _ACEOF | |
17423 rm -f conftest.$ac_objext conftest$ac_exeext | |
17424 if { (ac_try="$ac_link" | |
17425 case "(($ac_try" in | |
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17427 *) ac_try_echo=$ac_try;; | |
17428 esac | |
17429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17430 $as_echo "$ac_try_echo") >&5 | |
17431 (eval "$ac_link") 2>conftest.er1 | |
17432 ac_status=$? | |
17433 grep -v '^ *+' conftest.er1 >conftest.err | |
17434 rm -f conftest.er1 | |
17435 cat conftest.err >&5 | |
17436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17437 (exit $ac_status); } && { | |
17438 test -z "$ac_c_werror_flag" || | |
17439 test ! -s conftest.err | |
17440 } && test -s conftest$ac_exeext && { | |
17441 test "$cross_compiling" = yes || | |
17442 $as_test_x conftest$ac_exeext | |
17443 }; then | |
17444 eval "$as_ac_var=yes" | |
17445 else | |
17446 $as_echo "$as_me: failed program was:" >&5 | |
17447 sed 's/^/| /' conftest.$ac_ext >&5 | |
17448 | |
17449 eval "$as_ac_var=no" | |
17450 fi | |
17451 | |
17452 rm -rf conftest.dSYM | |
17453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17454 conftest$ac_exeext conftest.$ac_ext | |
17455 fi | |
17456 ac_res=`eval 'as_val=${'$as_ac_var'} | |
17457 $as_echo "$as_val"'` | |
17458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17459 $as_echo "$ac_res" >&6; } | |
17460 if test `eval 'as_val=${'$as_ac_var'} | |
17461 $as_echo "$as_val"'` = yes; then | |
17462 cat >>confdefs.h <<_ACEOF | 11015 cat >>confdefs.h <<_ACEOF |
17463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 11016 #define HAVE_TOUCHLOCK 1 |
17464 _ACEOF | 11017 _ACEOF |
17465 | 11018 |
17466 fi | 11019 fi |
17467 done | 11020 done |
17468 | 11021 |
17469 | |
17470 for ac_header in maillock.h | 11022 for ac_header in maillock.h |
17471 do | 11023 do : |
17472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 11024 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default" |
17473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 11025 if test "x$ac_cv_header_maillock_h" = x""yes; then : |
17474 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17475 $as_echo_n "checking for $ac_header... " >&6; } | |
17476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17477 $as_echo_n "(cached) " >&6 | |
17478 fi | |
17479 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17480 $as_echo "$as_val"'` | |
17481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17482 $as_echo "$ac_res" >&6; } | |
17483 else | |
17484 # Is the header compilable? | |
17485 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17486 $as_echo_n "checking $ac_header usability... " >&6; } | |
17487 cat >conftest.$ac_ext <<_ACEOF | |
17488 /* confdefs.h. */ | |
17489 _ACEOF | |
17490 cat confdefs.h >>conftest.$ac_ext | |
17491 cat >>conftest.$ac_ext <<_ACEOF | |
17492 /* end confdefs.h. */ | |
17493 $ac_includes_default | |
17494 #include <$ac_header> | |
17495 _ACEOF | |
17496 rm -f conftest.$ac_objext | |
17497 if { (ac_try="$ac_compile" | |
17498 case "(($ac_try" in | |
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17500 *) ac_try_echo=$ac_try;; | |
17501 esac | |
17502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17503 $as_echo "$ac_try_echo") >&5 | |
17504 (eval "$ac_compile") 2>conftest.er1 | |
17505 ac_status=$? | |
17506 grep -v '^ *+' conftest.er1 >conftest.err | |
17507 rm -f conftest.er1 | |
17508 cat conftest.err >&5 | |
17509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17510 (exit $ac_status); } && { | |
17511 test -z "$ac_c_werror_flag" || | |
17512 test ! -s conftest.err | |
17513 } && test -s conftest.$ac_objext; then | |
17514 ac_header_compiler=yes | |
17515 else | |
17516 $as_echo "$as_me: failed program was:" >&5 | |
17517 sed 's/^/| /' conftest.$ac_ext >&5 | |
17518 | |
17519 ac_header_compiler=no | |
17520 fi | |
17521 | |
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17523 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17524 $as_echo "$ac_header_compiler" >&6; } | |
17525 | |
17526 # Is the header present? | |
17527 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17528 $as_echo_n "checking $ac_header presence... " >&6; } | |
17529 cat >conftest.$ac_ext <<_ACEOF | |
17530 /* confdefs.h. */ | |
17531 _ACEOF | |
17532 cat confdefs.h >>conftest.$ac_ext | |
17533 cat >>conftest.$ac_ext <<_ACEOF | |
17534 /* end confdefs.h. */ | |
17535 #include <$ac_header> | |
17536 _ACEOF | |
17537 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17538 case "(($ac_try" in | |
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17540 *) ac_try_echo=$ac_try;; | |
17541 esac | |
17542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17543 $as_echo "$ac_try_echo") >&5 | |
17544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17545 ac_status=$? | |
17546 grep -v '^ *+' conftest.er1 >conftest.err | |
17547 rm -f conftest.er1 | |
17548 cat conftest.err >&5 | |
17549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17550 (exit $ac_status); } >/dev/null && { | |
17551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17552 test ! -s conftest.err | |
17553 }; then | |
17554 ac_header_preproc=yes | |
17555 else | |
17556 $as_echo "$as_me: failed program was:" >&5 | |
17557 sed 's/^/| /' conftest.$ac_ext >&5 | |
17558 | |
17559 ac_header_preproc=no | |
17560 fi | |
17561 | |
17562 rm -f conftest.err conftest.$ac_ext | |
17563 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17564 $as_echo "$ac_header_preproc" >&6; } | |
17565 | |
17566 # So? What about this header? | |
17567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17568 yes:no: ) | |
17569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17570 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17572 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17573 ac_header_preproc=yes | |
17574 ;; | |
17575 no:yes:* ) | |
17576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17577 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17579 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17581 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17583 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17585 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17587 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17588 | |
17589 ;; | |
17590 esac | |
17591 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17592 $as_echo_n "checking for $ac_header... " >&6; } | |
17593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17594 $as_echo_n "(cached) " >&6 | |
17595 else | |
17596 eval "$as_ac_Header=\$ac_header_preproc" | |
17597 fi | |
17598 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17599 $as_echo "$as_val"'` | |
17600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17601 $as_echo "$ac_res" >&6; } | |
17602 | |
17603 fi | |
17604 if test `eval 'as_val=${'$as_ac_Header'} | |
17605 $as_echo "$as_val"'` = yes; then | |
17606 cat >>confdefs.h <<_ACEOF | 11026 cat >>confdefs.h <<_ACEOF |
17607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 11027 #define HAVE_MAILLOCK_H 1 |
17608 _ACEOF | 11028 _ACEOF |
17609 | 11029 |
17610 fi | 11030 fi |
17611 | 11031 |
17612 done | 11032 done |
17645 esac | 11065 esac |
17646 | 11066 |
17647 BLESSMAIL_TARGET= | 11067 BLESSMAIL_TARGET= |
17648 case "$mail_lock" in | 11068 case "$mail_lock" in |
17649 flock) | 11069 flock) |
17650 cat >>confdefs.h <<\_ACEOF | 11070 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h |
17651 #define MAIL_USE_FLOCK 1 | |
17652 _ACEOF | |
17653 ;; | 11071 ;; |
17654 | 11072 |
17655 lockf) | 11073 lockf) |
17656 cat >>confdefs.h <<\_ACEOF | 11074 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h |
17657 #define MAIL_USE_LOCKF 1 | |
17658 _ACEOF | |
17659 ;; | 11075 ;; |
17660 | 11076 |
17661 *) BLESSMAIL_TARGET="need-blessmail" ;; | 11077 *) BLESSMAIL_TARGET="need-blessmail" ;; |
17662 esac | 11078 esac |
17663 | |
17664 | |
17665 | |
17666 | |
17667 | |
17668 | |
17669 | |
17670 | |
17671 | |
17672 | |
17673 | |
17674 | |
17675 | |
17676 | |
17677 | |
17678 | |
17679 | |
17680 | |
17681 | |
17682 | |
17683 | |
17684 | |
17685 | |
17686 | |
17687 | |
17688 | |
17689 | |
17690 | |
17691 | |
17692 | |
17693 | |
17694 | |
17695 | |
17696 | |
17697 | |
17698 | |
17699 | |
17700 | |
17701 | |
17702 | |
17703 | |
17704 | |
17705 | |
17706 | |
17707 | |
17708 | |
17709 | |
17710 | |
17711 | |
17712 | |
17713 | |
17714 | |
17715 | |
17716 | |
17717 | |
17718 | |
17719 | |
17720 | |
17721 | |
17722 | |
17723 | |
17724 | |
17725 | |
17726 | |
17727 | |
17728 | |
17729 | |
17730 | |
17731 | |
17732 | |
17733 | |
17734 | |
17735 | |
17736 | 11079 |
17737 | 11080 |
17738 | 11081 |
17739 for ac_func in gethostname getdomainname dup2 \ | 11082 for ac_func in gethostname getdomainname dup2 \ |
17740 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ | 11083 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ |
17744 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ | 11087 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
17745 sendto recvfrom getsockopt setsockopt getsockname getpeername \ | 11088 sendto recvfrom getsockopt setsockopt getsockname getpeername \ |
17746 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ | 11089 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ |
17747 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ | 11090 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ |
17748 cfmakeraw cfsetspeed isnan copysign | 11091 cfmakeraw cfsetspeed isnan copysign |
17749 do | 11092 do : |
17750 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11093 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17751 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 11094 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
17752 $as_echo_n "checking for $ac_func... " >&6; } | 11095 eval as_val=\$$as_ac_var |
17753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 11096 if test "x$as_val" = x""yes; then : |
17754 $as_echo_n "(cached) " >&6 | |
17755 else | |
17756 cat >conftest.$ac_ext <<_ACEOF | |
17757 /* confdefs.h. */ | |
17758 _ACEOF | |
17759 cat confdefs.h >>conftest.$ac_ext | |
17760 cat >>conftest.$ac_ext <<_ACEOF | |
17761 /* end confdefs.h. */ | |
17762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17763 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17764 #define $ac_func innocuous_$ac_func | |
17765 | |
17766 /* System header to define __stub macros and hopefully few prototypes, | |
17767 which can conflict with char $ac_func (); below. | |
17768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17769 <limits.h> exists even on freestanding compilers. */ | |
17770 | |
17771 #ifdef __STDC__ | |
17772 # include <limits.h> | |
17773 #else | |
17774 # include <assert.h> | |
17775 #endif | |
17776 | |
17777 #undef $ac_func | |
17778 | |
17779 /* Override any GCC internal prototype to avoid an error. | |
17780 Use char because int might match the return type of a GCC | |
17781 builtin and then its argument prototype would still apply. */ | |
17782 #ifdef __cplusplus | |
17783 extern "C" | |
17784 #endif | |
17785 char $ac_func (); | |
17786 /* The GNU C library defines this for functions which it implements | |
17787 to always fail with ENOSYS. Some functions are actually named | |
17788 something starting with __ and the normal name is an alias. */ | |
17789 #if defined __stub_$ac_func || defined __stub___$ac_func | |
17790 choke me | |
17791 #endif | |
17792 | |
17793 int | |
17794 main () | |
17795 { | |
17796 return $ac_func (); | |
17797 ; | |
17798 return 0; | |
17799 } | |
17800 _ACEOF | |
17801 rm -f conftest.$ac_objext conftest$ac_exeext | |
17802 if { (ac_try="$ac_link" | |
17803 case "(($ac_try" in | |
17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17805 *) ac_try_echo=$ac_try;; | |
17806 esac | |
17807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17808 $as_echo "$ac_try_echo") >&5 | |
17809 (eval "$ac_link") 2>conftest.er1 | |
17810 ac_status=$? | |
17811 grep -v '^ *+' conftest.er1 >conftest.err | |
17812 rm -f conftest.er1 | |
17813 cat conftest.err >&5 | |
17814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17815 (exit $ac_status); } && { | |
17816 test -z "$ac_c_werror_flag" || | |
17817 test ! -s conftest.err | |
17818 } && test -s conftest$ac_exeext && { | |
17819 test "$cross_compiling" = yes || | |
17820 $as_test_x conftest$ac_exeext | |
17821 }; then | |
17822 eval "$as_ac_var=yes" | |
17823 else | |
17824 $as_echo "$as_me: failed program was:" >&5 | |
17825 sed 's/^/| /' conftest.$ac_ext >&5 | |
17826 | |
17827 eval "$as_ac_var=no" | |
17828 fi | |
17829 | |
17830 rm -rf conftest.dSYM | |
17831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17832 conftest$ac_exeext conftest.$ac_ext | |
17833 fi | |
17834 ac_res=`eval 'as_val=${'$as_ac_var'} | |
17835 $as_echo "$as_val"'` | |
17836 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17837 $as_echo "$ac_res" >&6; } | |
17838 if test `eval 'as_val=${'$as_ac_var'} | |
17839 $as_echo "$as_val"'` = yes; then | |
17840 cat >>confdefs.h <<_ACEOF | 11097 cat >>confdefs.h <<_ACEOF |
17841 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 11098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
17842 _ACEOF | 11099 _ACEOF |
17843 | 11100 |
17844 fi | 11101 fi |
17845 done | 11102 done |
17846 | 11103 |
17847 | 11104 |
17848 | |
17849 for ac_header in sys/un.h | 11105 for ac_header in sys/un.h |
17850 do | 11106 do : |
17851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 11107 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" |
17852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 11108 if test "x$ac_cv_header_sys_un_h" = x""yes; then : |
17853 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17854 $as_echo_n "checking for $ac_header... " >&6; } | |
17855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17856 $as_echo_n "(cached) " >&6 | |
17857 fi | |
17858 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17859 $as_echo "$as_val"'` | |
17860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17861 $as_echo "$ac_res" >&6; } | |
17862 else | |
17863 # Is the header compilable? | |
17864 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17865 $as_echo_n "checking $ac_header usability... " >&6; } | |
17866 cat >conftest.$ac_ext <<_ACEOF | |
17867 /* confdefs.h. */ | |
17868 _ACEOF | |
17869 cat confdefs.h >>conftest.$ac_ext | |
17870 cat >>conftest.$ac_ext <<_ACEOF | |
17871 /* end confdefs.h. */ | |
17872 $ac_includes_default | |
17873 #include <$ac_header> | |
17874 _ACEOF | |
17875 rm -f conftest.$ac_objext | |
17876 if { (ac_try="$ac_compile" | |
17877 case "(($ac_try" in | |
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17879 *) ac_try_echo=$ac_try;; | |
17880 esac | |
17881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17882 $as_echo "$ac_try_echo") >&5 | |
17883 (eval "$ac_compile") 2>conftest.er1 | |
17884 ac_status=$? | |
17885 grep -v '^ *+' conftest.er1 >conftest.err | |
17886 rm -f conftest.er1 | |
17887 cat conftest.err >&5 | |
17888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17889 (exit $ac_status); } && { | |
17890 test -z "$ac_c_werror_flag" || | |
17891 test ! -s conftest.err | |
17892 } && test -s conftest.$ac_objext; then | |
17893 ac_header_compiler=yes | |
17894 else | |
17895 $as_echo "$as_me: failed program was:" >&5 | |
17896 sed 's/^/| /' conftest.$ac_ext >&5 | |
17897 | |
17898 ac_header_compiler=no | |
17899 fi | |
17900 | |
17901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17902 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17903 $as_echo "$ac_header_compiler" >&6; } | |
17904 | |
17905 # Is the header present? | |
17906 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17907 $as_echo_n "checking $ac_header presence... " >&6; } | |
17908 cat >conftest.$ac_ext <<_ACEOF | |
17909 /* confdefs.h. */ | |
17910 _ACEOF | |
17911 cat confdefs.h >>conftest.$ac_ext | |
17912 cat >>conftest.$ac_ext <<_ACEOF | |
17913 /* end confdefs.h. */ | |
17914 #include <$ac_header> | |
17915 _ACEOF | |
17916 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17917 case "(($ac_try" in | |
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17919 *) ac_try_echo=$ac_try;; | |
17920 esac | |
17921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17922 $as_echo "$ac_try_echo") >&5 | |
17923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17924 ac_status=$? | |
17925 grep -v '^ *+' conftest.er1 >conftest.err | |
17926 rm -f conftest.er1 | |
17927 cat conftest.err >&5 | |
17928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17929 (exit $ac_status); } >/dev/null && { | |
17930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17931 test ! -s conftest.err | |
17932 }; then | |
17933 ac_header_preproc=yes | |
17934 else | |
17935 $as_echo "$as_me: failed program was:" >&5 | |
17936 sed 's/^/| /' conftest.$ac_ext >&5 | |
17937 | |
17938 ac_header_preproc=no | |
17939 fi | |
17940 | |
17941 rm -f conftest.err conftest.$ac_ext | |
17942 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17943 $as_echo "$ac_header_preproc" >&6; } | |
17944 | |
17945 # So? What about this header? | |
17946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17947 yes:no: ) | |
17948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17949 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17952 ac_header_preproc=yes | |
17953 ;; | |
17954 no:yes:* ) | |
17955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17956 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17958 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17960 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17962 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17966 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17967 | |
17968 ;; | |
17969 esac | |
17970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17971 $as_echo_n "checking for $ac_header... " >&6; } | |
17972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17973 $as_echo_n "(cached) " >&6 | |
17974 else | |
17975 eval "$as_ac_Header=\$ac_header_preproc" | |
17976 fi | |
17977 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17978 $as_echo "$as_val"'` | |
17979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17980 $as_echo "$ac_res" >&6; } | |
17981 | |
17982 fi | |
17983 if test `eval 'as_val=${'$as_ac_Header'} | |
17984 $as_echo "$as_val"'` = yes; then | |
17985 cat >>confdefs.h <<_ACEOF | 11109 cat >>confdefs.h <<_ACEOF |
17986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 11110 #define HAVE_SYS_UN_H 1 |
17987 _ACEOF | 11111 _ACEOF |
17988 | 11112 |
17989 fi | 11113 fi |
17990 | 11114 |
17991 done | 11115 done |
17993 | 11117 |
17994 | 11118 |
17995 | 11119 |
17996 | 11120 |
17997 | 11121 |
17998 for ac_header in $ac_header_list | 11122 |
17999 do | 11123 for ac_func in $ac_func_list |
18000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 11124 do : |
18001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 11125 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
18002 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | 11126 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
18003 $as_echo_n "checking for $ac_header... " >&6; } | 11127 eval as_val=\$$as_ac_var |
18004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 11128 if test "x$as_val" = x""yes; then : |
18005 $as_echo_n "(cached) " >&6 | |
18006 fi | |
18007 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
18008 $as_echo "$as_val"'` | |
18009 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18010 $as_echo "$ac_res" >&6; } | |
18011 else | |
18012 # Is the header compilable? | |
18013 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18014 $as_echo_n "checking $ac_header usability... " >&6; } | |
18015 cat >conftest.$ac_ext <<_ACEOF | |
18016 /* confdefs.h. */ | |
18017 _ACEOF | |
18018 cat confdefs.h >>conftest.$ac_ext | |
18019 cat >>conftest.$ac_ext <<_ACEOF | |
18020 /* end confdefs.h. */ | |
18021 $ac_includes_default | |
18022 #include <$ac_header> | |
18023 _ACEOF | |
18024 rm -f conftest.$ac_objext | |
18025 if { (ac_try="$ac_compile" | |
18026 case "(($ac_try" in | |
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18028 *) ac_try_echo=$ac_try;; | |
18029 esac | |
18030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18031 $as_echo "$ac_try_echo") >&5 | |
18032 (eval "$ac_compile") 2>conftest.er1 | |
18033 ac_status=$? | |
18034 grep -v '^ *+' conftest.er1 >conftest.err | |
18035 rm -f conftest.er1 | |
18036 cat conftest.err >&5 | |
18037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18038 (exit $ac_status); } && { | |
18039 test -z "$ac_c_werror_flag" || | |
18040 test ! -s conftest.err | |
18041 } && test -s conftest.$ac_objext; then | |
18042 ac_header_compiler=yes | |
18043 else | |
18044 $as_echo "$as_me: failed program was:" >&5 | |
18045 sed 's/^/| /' conftest.$ac_ext >&5 | |
18046 | |
18047 ac_header_compiler=no | |
18048 fi | |
18049 | |
18050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18051 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18052 $as_echo "$ac_header_compiler" >&6; } | |
18053 | |
18054 # Is the header present? | |
18055 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18056 $as_echo_n "checking $ac_header presence... " >&6; } | |
18057 cat >conftest.$ac_ext <<_ACEOF | |
18058 /* confdefs.h. */ | |
18059 _ACEOF | |
18060 cat confdefs.h >>conftest.$ac_ext | |
18061 cat >>conftest.$ac_ext <<_ACEOF | |
18062 /* end confdefs.h. */ | |
18063 #include <$ac_header> | |
18064 _ACEOF | |
18065 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
18066 case "(($ac_try" in | |
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18068 *) ac_try_echo=$ac_try;; | |
18069 esac | |
18070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18071 $as_echo "$ac_try_echo") >&5 | |
18072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
18073 ac_status=$? | |
18074 grep -v '^ *+' conftest.er1 >conftest.err | |
18075 rm -f conftest.er1 | |
18076 cat conftest.err >&5 | |
18077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18078 (exit $ac_status); } >/dev/null && { | |
18079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
18080 test ! -s conftest.err | |
18081 }; then | |
18082 ac_header_preproc=yes | |
18083 else | |
18084 $as_echo "$as_me: failed program was:" >&5 | |
18085 sed 's/^/| /' conftest.$ac_ext >&5 | |
18086 | |
18087 ac_header_preproc=no | |
18088 fi | |
18089 | |
18090 rm -f conftest.err conftest.$ac_ext | |
18091 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18092 $as_echo "$ac_header_preproc" >&6; } | |
18093 | |
18094 # So? What about this header? | |
18095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
18096 yes:no: ) | |
18097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18098 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
18100 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18101 ac_header_preproc=yes | |
18102 ;; | |
18103 no:yes:* ) | |
18104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
18105 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
18106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
18107 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18109 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18111 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
18112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
18113 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
18114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
18115 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
18116 | |
18117 ;; | |
18118 esac | |
18119 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18120 $as_echo_n "checking for $ac_header... " >&6; } | |
18121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
18122 $as_echo_n "(cached) " >&6 | |
18123 else | |
18124 eval "$as_ac_Header=\$ac_header_preproc" | |
18125 fi | |
18126 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
18127 $as_echo "$as_val"'` | |
18128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18129 $as_echo "$ac_res" >&6; } | |
18130 | |
18131 fi | |
18132 if test `eval 'as_val=${'$as_ac_Header'} | |
18133 $as_echo "$as_val"'` = yes; then | |
18134 cat >>confdefs.h <<_ACEOF | |
18135 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18136 _ACEOF | |
18137 | |
18138 fi | |
18139 | |
18140 done | |
18141 | |
18142 | |
18143 | |
18144 | |
18145 | |
18146 | |
18147 | |
18148 | |
18149 | |
18150 for ac_func in $ac_func_list | |
18151 do | |
18152 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
18153 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18154 $as_echo_n "checking for $ac_func... " >&6; } | |
18155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
18156 $as_echo_n "(cached) " >&6 | |
18157 else | |
18158 cat >conftest.$ac_ext <<_ACEOF | |
18159 /* confdefs.h. */ | |
18160 _ACEOF | |
18161 cat confdefs.h >>conftest.$ac_ext | |
18162 cat >>conftest.$ac_ext <<_ACEOF | |
18163 /* end confdefs.h. */ | |
18164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18165 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18166 #define $ac_func innocuous_$ac_func | |
18167 | |
18168 /* System header to define __stub macros and hopefully few prototypes, | |
18169 which can conflict with char $ac_func (); below. | |
18170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18171 <limits.h> exists even on freestanding compilers. */ | |
18172 | |
18173 #ifdef __STDC__ | |
18174 # include <limits.h> | |
18175 #else | |
18176 # include <assert.h> | |
18177 #endif | |
18178 | |
18179 #undef $ac_func | |
18180 | |
18181 /* Override any GCC internal prototype to avoid an error. | |
18182 Use char because int might match the return type of a GCC | |
18183 builtin and then its argument prototype would still apply. */ | |
18184 #ifdef __cplusplus | |
18185 extern "C" | |
18186 #endif | |
18187 char $ac_func (); | |
18188 /* The GNU C library defines this for functions which it implements | |
18189 to always fail with ENOSYS. Some functions are actually named | |
18190 something starting with __ and the normal name is an alias. */ | |
18191 #if defined __stub_$ac_func || defined __stub___$ac_func | |
18192 choke me | |
18193 #endif | |
18194 | |
18195 int | |
18196 main () | |
18197 { | |
18198 return $ac_func (); | |
18199 ; | |
18200 return 0; | |
18201 } | |
18202 _ACEOF | |
18203 rm -f conftest.$ac_objext conftest$ac_exeext | |
18204 if { (ac_try="$ac_link" | |
18205 case "(($ac_try" in | |
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18207 *) ac_try_echo=$ac_try;; | |
18208 esac | |
18209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18210 $as_echo "$ac_try_echo") >&5 | |
18211 (eval "$ac_link") 2>conftest.er1 | |
18212 ac_status=$? | |
18213 grep -v '^ *+' conftest.er1 >conftest.err | |
18214 rm -f conftest.er1 | |
18215 cat conftest.err >&5 | |
18216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18217 (exit $ac_status); } && { | |
18218 test -z "$ac_c_werror_flag" || | |
18219 test ! -s conftest.err | |
18220 } && test -s conftest$ac_exeext && { | |
18221 test "$cross_compiling" = yes || | |
18222 $as_test_x conftest$ac_exeext | |
18223 }; then | |
18224 eval "$as_ac_var=yes" | |
18225 else | |
18226 $as_echo "$as_me: failed program was:" >&5 | |
18227 sed 's/^/| /' conftest.$ac_ext >&5 | |
18228 | |
18229 eval "$as_ac_var=no" | |
18230 fi | |
18231 | |
18232 rm -rf conftest.dSYM | |
18233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18234 conftest$ac_exeext conftest.$ac_ext | |
18235 fi | |
18236 ac_res=`eval 'as_val=${'$as_ac_var'} | |
18237 $as_echo "$as_val"'` | |
18238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18239 $as_echo "$ac_res" >&6; } | |
18240 if test `eval 'as_val=${'$as_ac_var'} | |
18241 $as_echo "$as_val"'` = yes; then | |
18242 cat >>confdefs.h <<_ACEOF | 11129 cat >>confdefs.h <<_ACEOF |
18243 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 11130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
18244 _ACEOF | 11131 _ACEOF |
18245 | 11132 |
18246 fi | 11133 fi |
18248 | 11135 |
18249 | 11136 |
18250 | 11137 |
18251 | 11138 |
18252 | 11139 |
18253 | 11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 |
18254 | |
18255 | |
18256 | |
18257 | |
18258 | |
18259 | |
18260 | |
18261 | |
18262 | |
18263 | |
18264 | |
18265 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5 | |
18266 $as_echo_n "checking for working mktime... " >&6; } | 11141 $as_echo_n "checking for working mktime... " >&6; } |
18267 if test "${ac_cv_func_working_mktime+set}" = set; then | 11142 if test "${ac_cv_func_working_mktime+set}" = set; then : |
18268 $as_echo_n "(cached) " >&6 | 11143 $as_echo_n "(cached) " >&6 |
18269 else | 11144 else |
18270 if test "$cross_compiling" = yes; then | 11145 if test "$cross_compiling" = yes; then : |
18271 ac_cv_func_working_mktime=no | 11146 ac_cv_func_working_mktime=no |
18272 else | 11147 else |
18273 cat >conftest.$ac_ext <<_ACEOF | 11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18274 /* confdefs.h. */ | |
18275 _ACEOF | |
18276 cat confdefs.h >>conftest.$ac_ext | |
18277 cat >>conftest.$ac_ext <<_ACEOF | |
18278 /* end confdefs.h. */ | 11149 /* end confdefs.h. */ |
18279 /* Test program from Paul Eggert and Tony Leneis. */ | 11150 /* Test program from Paul Eggert and Tony Leneis. */ |
18280 #ifdef TIME_WITH_SYS_TIME | 11151 #ifdef TIME_WITH_SYS_TIME |
18281 # include <sys/time.h> | 11152 # include <sys/time.h> |
18282 # include <time.h> | 11153 # include <time.h> |
18469 return 1; | 11340 return 1; |
18470 } | 11341 } |
18471 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); | 11342 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); |
18472 } | 11343 } |
18473 _ACEOF | 11344 _ACEOF |
18474 rm -f conftest$ac_exeext | 11345 if ac_fn_c_try_run "$LINENO"; then : |
18475 if { (ac_try="$ac_link" | |
18476 case "(($ac_try" in | |
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18478 *) ac_try_echo=$ac_try;; | |
18479 esac | |
18480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18481 $as_echo "$ac_try_echo") >&5 | |
18482 (eval "$ac_link") 2>&5 | |
18483 ac_status=$? | |
18484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18486 { (case "(($ac_try" in | |
18487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18488 *) ac_try_echo=$ac_try;; | |
18489 esac | |
18490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18491 $as_echo "$ac_try_echo") >&5 | |
18492 (eval "$ac_try") 2>&5 | |
18493 ac_status=$? | |
18494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18495 (exit $ac_status); }; }; then | |
18496 ac_cv_func_working_mktime=yes | 11346 ac_cv_func_working_mktime=yes |
18497 else | 11347 else |
18498 $as_echo "$as_me: program exited with status $ac_status" >&5 | 11348 ac_cv_func_working_mktime=no |
18499 $as_echo "$as_me: failed program was:" >&5 | 11349 fi |
18500 sed 's/^/| /' conftest.$ac_ext >&5 | 11350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
18501 | 11351 conftest.$ac_objext conftest.beam conftest.$ac_ext |
18502 ( exit $ac_status ) | 11352 fi |
18503 ac_cv_func_working_mktime=no | 11353 |
18504 fi | 11354 fi |
18505 rm -rf conftest.dSYM | 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 |
18506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18507 fi | |
18508 | |
18509 | |
18510 fi | |
18511 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 | |
18512 $as_echo "$ac_cv_func_working_mktime" >&6; } | 11356 $as_echo "$ac_cv_func_working_mktime" >&6; } |
18513 if test $ac_cv_func_working_mktime = no; then | 11357 if test $ac_cv_func_working_mktime = no; then |
18514 case " $LIBOBJS " in | 11358 case " $LIBOBJS " in |
18515 *" mktime.$ac_objext "* ) ;; | 11359 *" mktime.$ac_objext "* ) ;; |
18516 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" | 11360 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" |
18519 | 11363 |
18520 fi | 11364 fi |
18521 | 11365 |
18522 if test "$ac_cv_func_working_mktime" = no; then | 11366 if test "$ac_cv_func_working_mktime" = no; then |
18523 | 11367 |
18524 cat >>confdefs.h <<\_ACEOF | 11368 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h |
18525 #define BROKEN_MKTIME 1 | |
18526 _ACEOF | |
18527 | 11369 |
18528 fi | 11370 fi |
18529 | 11371 |
18530 ac_have_func=no # yes means we've found a way to get the load average. | 11372 ac_have_func=no # yes means we've found a way to get the load average. |
18531 | 11373 |
18532 # Make sure getloadavg.c is where it belongs, at configure-time. | 11374 # Make sure getloadavg.c is where it belongs, at configure-time. |
18533 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || | 11375 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || |
18534 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 | 11376 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 |
18535 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} | |
18536 { (exit 1); exit 1; }; } | |
18537 | 11377 |
18538 ac_save_LIBS=$LIBS | 11378 ac_save_LIBS=$LIBS |
18539 | 11379 |
18540 # Check for getloadavg, but be sure not to touch the cache variable. | 11380 # Check for getloadavg, but be sure not to touch the cache variable. |
18541 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5 | 11381 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" |
18542 $as_echo_n "checking for getloadavg... " >&6; } | 11382 if test "x$ac_cv_func_getloadavg" = x""yes; then : |
18543 if test "${ac_cv_func_getloadavg+set}" = set; then | |
18544 $as_echo_n "(cached) " >&6 | |
18545 else | |
18546 cat >conftest.$ac_ext <<_ACEOF | |
18547 /* confdefs.h. */ | |
18548 _ACEOF | |
18549 cat confdefs.h >>conftest.$ac_ext | |
18550 cat >>conftest.$ac_ext <<_ACEOF | |
18551 /* end confdefs.h. */ | |
18552 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg. | |
18553 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18554 #define getloadavg innocuous_getloadavg | |
18555 | |
18556 /* System header to define __stub macros and hopefully few prototypes, | |
18557 which can conflict with char getloadavg (); below. | |
18558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18559 <limits.h> exists even on freestanding compilers. */ | |
18560 | |
18561 #ifdef __STDC__ | |
18562 # include <limits.h> | |
18563 #else | |
18564 # include <assert.h> | |
18565 #endif | |
18566 | |
18567 #undef getloadavg | |
18568 | |
18569 /* Override any GCC internal prototype to avoid an error. | |
18570 Use char because int might match the return type of a GCC | |
18571 builtin and then its argument prototype would still apply. */ | |
18572 #ifdef __cplusplus | |
18573 extern "C" | |
18574 #endif | |
18575 char getloadavg (); | |
18576 /* The GNU C library defines this for functions which it implements | |
18577 to always fail with ENOSYS. Some functions are actually named | |
18578 something starting with __ and the normal name is an alias. */ | |
18579 #if defined __stub_getloadavg || defined __stub___getloadavg | |
18580 choke me | |
18581 #endif | |
18582 | |
18583 int | |
18584 main () | |
18585 { | |
18586 return getloadavg (); | |
18587 ; | |
18588 return 0; | |
18589 } | |
18590 _ACEOF | |
18591 rm -f conftest.$ac_objext conftest$ac_exeext | |
18592 if { (ac_try="$ac_link" | |
18593 case "(($ac_try" in | |
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18595 *) ac_try_echo=$ac_try;; | |
18596 esac | |
18597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18598 $as_echo "$ac_try_echo") >&5 | |
18599 (eval "$ac_link") 2>conftest.er1 | |
18600 ac_status=$? | |
18601 grep -v '^ *+' conftest.er1 >conftest.err | |
18602 rm -f conftest.er1 | |
18603 cat conftest.err >&5 | |
18604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18605 (exit $ac_status); } && { | |
18606 test -z "$ac_c_werror_flag" || | |
18607 test ! -s conftest.err | |
18608 } && test -s conftest$ac_exeext && { | |
18609 test "$cross_compiling" = yes || | |
18610 $as_test_x conftest$ac_exeext | |
18611 }; then | |
18612 ac_cv_func_getloadavg=yes | |
18613 else | |
18614 $as_echo "$as_me: failed program was:" >&5 | |
18615 sed 's/^/| /' conftest.$ac_ext >&5 | |
18616 | |
18617 ac_cv_func_getloadavg=no | |
18618 fi | |
18619 | |
18620 rm -rf conftest.dSYM | |
18621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18622 conftest$ac_exeext conftest.$ac_ext | |
18623 fi | |
18624 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 | |
18625 $as_echo "$ac_cv_func_getloadavg" >&6; } | |
18626 if test $ac_cv_func_getloadavg = yes; then | |
18627 exit 0 | 11383 exit 0 |
18628 else | 11384 else |
18629 exit 1 | 11385 exit 1 |
18630 fi | 11386 fi |
18631 ) && ac_have_func=yes | 11387 ) && ac_have_func=yes |
18632 | 11388 |
18633 # On HPUX9, an unprivileged user can get load averages through this function. | 11389 # On HPUX9, an unprivileged user can get load averages through this function. |
18634 | |
18635 for ac_func in pstat_getdynamic | 11390 for ac_func in pstat_getdynamic |
18636 do | 11391 do : |
18637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11392 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" |
18638 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 11393 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then : |
18639 $as_echo_n "checking for $ac_func... " >&6; } | |
18640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
18641 $as_echo_n "(cached) " >&6 | |
18642 else | |
18643 cat >conftest.$ac_ext <<_ACEOF | |
18644 /* confdefs.h. */ | |
18645 _ACEOF | |
18646 cat confdefs.h >>conftest.$ac_ext | |
18647 cat >>conftest.$ac_ext <<_ACEOF | |
18648 /* end confdefs.h. */ | |
18649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18650 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18651 #define $ac_func innocuous_$ac_func | |
18652 | |
18653 /* System header to define __stub macros and hopefully few prototypes, | |
18654 which can conflict with char $ac_func (); below. | |
18655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18656 <limits.h> exists even on freestanding compilers. */ | |
18657 | |
18658 #ifdef __STDC__ | |
18659 # include <limits.h> | |
18660 #else | |
18661 # include <assert.h> | |
18662 #endif | |
18663 | |
18664 #undef $ac_func | |
18665 | |
18666 /* Override any GCC internal prototype to avoid an error. | |
18667 Use char because int might match the return type of a GCC | |
18668 builtin and then its argument prototype would still apply. */ | |
18669 #ifdef __cplusplus | |
18670 extern "C" | |
18671 #endif | |
18672 char $ac_func (); | |
18673 /* The GNU C library defines this for functions which it implements | |
18674 to always fail with ENOSYS. Some functions are actually named | |
18675 something starting with __ and the normal name is an alias. */ | |
18676 #if defined __stub_$ac_func || defined __stub___$ac_func | |
18677 choke me | |
18678 #endif | |
18679 | |
18680 int | |
18681 main () | |
18682 { | |
18683 return $ac_func (); | |
18684 ; | |
18685 return 0; | |
18686 } | |
18687 _ACEOF | |
18688 rm -f conftest.$ac_objext conftest$ac_exeext | |
18689 if { (ac_try="$ac_link" | |
18690 case "(($ac_try" in | |
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18692 *) ac_try_echo=$ac_try;; | |
18693 esac | |
18694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18695 $as_echo "$ac_try_echo") >&5 | |
18696 (eval "$ac_link") 2>conftest.er1 | |
18697 ac_status=$? | |
18698 grep -v '^ *+' conftest.er1 >conftest.err | |
18699 rm -f conftest.er1 | |
18700 cat conftest.err >&5 | |
18701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18702 (exit $ac_status); } && { | |
18703 test -z "$ac_c_werror_flag" || | |
18704 test ! -s conftest.err | |
18705 } && test -s conftest$ac_exeext && { | |
18706 test "$cross_compiling" = yes || | |
18707 $as_test_x conftest$ac_exeext | |
18708 }; then | |
18709 eval "$as_ac_var=yes" | |
18710 else | |
18711 $as_echo "$as_me: failed program was:" >&5 | |
18712 sed 's/^/| /' conftest.$ac_ext >&5 | |
18713 | |
18714 eval "$as_ac_var=no" | |
18715 fi | |
18716 | |
18717 rm -rf conftest.dSYM | |
18718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18719 conftest$ac_exeext conftest.$ac_ext | |
18720 fi | |
18721 ac_res=`eval 'as_val=${'$as_ac_var'} | |
18722 $as_echo "$as_val"'` | |
18723 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18724 $as_echo "$ac_res" >&6; } | |
18725 if test `eval 'as_val=${'$as_ac_var'} | |
18726 $as_echo "$as_val"'` = yes; then | |
18727 cat >>confdefs.h <<_ACEOF | 11394 cat >>confdefs.h <<_ACEOF |
18728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 11395 #define HAVE_PSTAT_GETDYNAMIC 1 |
18729 _ACEOF | 11396 _ACEOF |
18730 | 11397 |
18731 fi | 11398 fi |
18732 done | 11399 done |
18733 | 11400 |
18734 | 11401 |
18735 # Solaris has libkstat which does not require root. | 11402 # Solaris has libkstat which does not require root. |
18736 | 11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 |
18737 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 | |
18738 $as_echo_n "checking for kstat_open in -lkstat... " >&6; } | 11404 $as_echo_n "checking for kstat_open in -lkstat... " >&6; } |
18739 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | 11405 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : |
18740 $as_echo_n "(cached) " >&6 | 11406 $as_echo_n "(cached) " >&6 |
18741 else | 11407 else |
18742 ac_check_lib_save_LIBS=$LIBS | 11408 ac_check_lib_save_LIBS=$LIBS |
18743 LIBS="-lkstat $LIBS" | 11409 LIBS="-lkstat $LIBS" |
18744 cat >conftest.$ac_ext <<_ACEOF | 11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18745 /* confdefs.h. */ | |
18746 _ACEOF | |
18747 cat confdefs.h >>conftest.$ac_ext | |
18748 cat >>conftest.$ac_ext <<_ACEOF | |
18749 /* end confdefs.h. */ | 11411 /* end confdefs.h. */ |
18750 | 11412 |
18751 /* Override any GCC internal prototype to avoid an error. | 11413 /* Override any GCC internal prototype to avoid an error. |
18752 Use char because int might match the return type of a GCC | 11414 Use char because int might match the return type of a GCC |
18753 builtin and then its argument prototype would still apply. */ | 11415 builtin and then its argument prototype would still apply. */ |
18761 return kstat_open (); | 11423 return kstat_open (); |
18762 ; | 11424 ; |
18763 return 0; | 11425 return 0; |
18764 } | 11426 } |
18765 _ACEOF | 11427 _ACEOF |
18766 rm -f conftest.$ac_objext conftest$ac_exeext | 11428 if ac_fn_c_try_link "$LINENO"; then : |
18767 if { (ac_try="$ac_link" | |
18768 case "(($ac_try" in | |
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18770 *) ac_try_echo=$ac_try;; | |
18771 esac | |
18772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18773 $as_echo "$ac_try_echo") >&5 | |
18774 (eval "$ac_link") 2>conftest.er1 | |
18775 ac_status=$? | |
18776 grep -v '^ *+' conftest.er1 >conftest.err | |
18777 rm -f conftest.er1 | |
18778 cat conftest.err >&5 | |
18779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18780 (exit $ac_status); } && { | |
18781 test -z "$ac_c_werror_flag" || | |
18782 test ! -s conftest.err | |
18783 } && test -s conftest$ac_exeext && { | |
18784 test "$cross_compiling" = yes || | |
18785 $as_test_x conftest$ac_exeext | |
18786 }; then | |
18787 ac_cv_lib_kstat_kstat_open=yes | 11429 ac_cv_lib_kstat_kstat_open=yes |
18788 else | 11430 else |
18789 $as_echo "$as_me: failed program was:" >&5 | 11431 ac_cv_lib_kstat_kstat_open=no |
18790 sed 's/^/| /' conftest.$ac_ext >&5 | 11432 fi |
18791 | 11433 rm -f core conftest.err conftest.$ac_objext \ |
18792 ac_cv_lib_kstat_kstat_open=no | 11434 conftest$ac_exeext conftest.$ac_ext |
18793 fi | |
18794 | |
18795 rm -rf conftest.dSYM | |
18796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18797 conftest$ac_exeext conftest.$ac_ext | |
18798 LIBS=$ac_check_lib_save_LIBS | 11435 LIBS=$ac_check_lib_save_LIBS |
18799 fi | 11436 fi |
18800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 | 11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 |
18801 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } | 11438 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } |
18802 if test $ac_cv_lib_kstat_kstat_open = yes; then | 11439 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then : |
18803 cat >>confdefs.h <<_ACEOF | 11440 cat >>confdefs.h <<_ACEOF |
18804 #define HAVE_LIBKSTAT 1 | 11441 #define HAVE_LIBKSTAT 1 |
18805 _ACEOF | 11442 _ACEOF |
18806 | 11443 |
18807 LIBS="-lkstat $LIBS" | 11444 LIBS="-lkstat $LIBS" |
18813 # Some systems with -lutil have (and need) -lkvm as well, some do not. | 11450 # Some systems with -lutil have (and need) -lkvm as well, some do not. |
18814 # On Solaris, -lkvm requires nlist from -lelf, so check that first | 11451 # On Solaris, -lkvm requires nlist from -lelf, so check that first |
18815 # to get the right answer into the cache. | 11452 # to get the right answer into the cache. |
18816 # For kstat on solaris, we need libelf to force the definition of SVR4 below. | 11453 # For kstat on solaris, we need libelf to force the definition of SVR4 below. |
18817 if test $ac_have_func = no; then | 11454 if test $ac_have_func = no; then |
18818 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 | 11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 |
18819 $as_echo_n "checking for elf_begin in -lelf... " >&6; } | 11456 $as_echo_n "checking for elf_begin in -lelf... " >&6; } |
18820 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | 11457 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then : |
18821 $as_echo_n "(cached) " >&6 | 11458 $as_echo_n "(cached) " >&6 |
18822 else | 11459 else |
18823 ac_check_lib_save_LIBS=$LIBS | 11460 ac_check_lib_save_LIBS=$LIBS |
18824 LIBS="-lelf $LIBS" | 11461 LIBS="-lelf $LIBS" |
18825 cat >conftest.$ac_ext <<_ACEOF | 11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18826 /* confdefs.h. */ | |
18827 _ACEOF | |
18828 cat confdefs.h >>conftest.$ac_ext | |
18829 cat >>conftest.$ac_ext <<_ACEOF | |
18830 /* end confdefs.h. */ | 11463 /* end confdefs.h. */ |
18831 | 11464 |
18832 /* Override any GCC internal prototype to avoid an error. | 11465 /* Override any GCC internal prototype to avoid an error. |
18833 Use char because int might match the return type of a GCC | 11466 Use char because int might match the return type of a GCC |
18834 builtin and then its argument prototype would still apply. */ | 11467 builtin and then its argument prototype would still apply. */ |
18842 return elf_begin (); | 11475 return elf_begin (); |
18843 ; | 11476 ; |
18844 return 0; | 11477 return 0; |
18845 } | 11478 } |
18846 _ACEOF | 11479 _ACEOF |
18847 rm -f conftest.$ac_objext conftest$ac_exeext | 11480 if ac_fn_c_try_link "$LINENO"; then : |
18848 if { (ac_try="$ac_link" | |
18849 case "(($ac_try" in | |
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18851 *) ac_try_echo=$ac_try;; | |
18852 esac | |
18853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18854 $as_echo "$ac_try_echo") >&5 | |
18855 (eval "$ac_link") 2>conftest.er1 | |
18856 ac_status=$? | |
18857 grep -v '^ *+' conftest.er1 >conftest.err | |
18858 rm -f conftest.er1 | |
18859 cat conftest.err >&5 | |
18860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18861 (exit $ac_status); } && { | |
18862 test -z "$ac_c_werror_flag" || | |
18863 test ! -s conftest.err | |
18864 } && test -s conftest$ac_exeext && { | |
18865 test "$cross_compiling" = yes || | |
18866 $as_test_x conftest$ac_exeext | |
18867 }; then | |
18868 ac_cv_lib_elf_elf_begin=yes | 11481 ac_cv_lib_elf_elf_begin=yes |
18869 else | 11482 else |
18870 $as_echo "$as_me: failed program was:" >&5 | 11483 ac_cv_lib_elf_elf_begin=no |
18871 sed 's/^/| /' conftest.$ac_ext >&5 | 11484 fi |
18872 | 11485 rm -f core conftest.err conftest.$ac_objext \ |
18873 ac_cv_lib_elf_elf_begin=no | 11486 conftest$ac_exeext conftest.$ac_ext |
18874 fi | |
18875 | |
18876 rm -rf conftest.dSYM | |
18877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18878 conftest$ac_exeext conftest.$ac_ext | |
18879 LIBS=$ac_check_lib_save_LIBS | 11487 LIBS=$ac_check_lib_save_LIBS |
18880 fi | 11488 fi |
18881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 | 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 |
18882 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } | 11490 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } |
18883 if test $ac_cv_lib_elf_elf_begin = yes; then | 11491 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then : |
18884 LIBS="-lelf $LIBS" | 11492 LIBS="-lelf $LIBS" |
18885 fi | 11493 fi |
18886 | 11494 |
18887 fi | 11495 fi |
18888 if test $ac_have_func = no; then | 11496 if test $ac_have_func = no; then |
18889 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 | 11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 |
18890 $as_echo_n "checking for kvm_open in -lkvm... " >&6; } | 11498 $as_echo_n "checking for kvm_open in -lkvm... " >&6; } |
18891 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | 11499 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then : |
18892 $as_echo_n "(cached) " >&6 | 11500 $as_echo_n "(cached) " >&6 |
18893 else | 11501 else |
18894 ac_check_lib_save_LIBS=$LIBS | 11502 ac_check_lib_save_LIBS=$LIBS |
18895 LIBS="-lkvm $LIBS" | 11503 LIBS="-lkvm $LIBS" |
18896 cat >conftest.$ac_ext <<_ACEOF | 11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18897 /* confdefs.h. */ | |
18898 _ACEOF | |
18899 cat confdefs.h >>conftest.$ac_ext | |
18900 cat >>conftest.$ac_ext <<_ACEOF | |
18901 /* end confdefs.h. */ | 11505 /* end confdefs.h. */ |
18902 | 11506 |
18903 /* Override any GCC internal prototype to avoid an error. | 11507 /* Override any GCC internal prototype to avoid an error. |
18904 Use char because int might match the return type of a GCC | 11508 Use char because int might match the return type of a GCC |
18905 builtin and then its argument prototype would still apply. */ | 11509 builtin and then its argument prototype would still apply. */ |
18913 return kvm_open (); | 11517 return kvm_open (); |
18914 ; | 11518 ; |
18915 return 0; | 11519 return 0; |
18916 } | 11520 } |
18917 _ACEOF | 11521 _ACEOF |
18918 rm -f conftest.$ac_objext conftest$ac_exeext | 11522 if ac_fn_c_try_link "$LINENO"; then : |
18919 if { (ac_try="$ac_link" | |
18920 case "(($ac_try" in | |
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18922 *) ac_try_echo=$ac_try;; | |
18923 esac | |
18924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18925 $as_echo "$ac_try_echo") >&5 | |
18926 (eval "$ac_link") 2>conftest.er1 | |
18927 ac_status=$? | |
18928 grep -v '^ *+' conftest.er1 >conftest.err | |
18929 rm -f conftest.er1 | |
18930 cat conftest.err >&5 | |
18931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18932 (exit $ac_status); } && { | |
18933 test -z "$ac_c_werror_flag" || | |
18934 test ! -s conftest.err | |
18935 } && test -s conftest$ac_exeext && { | |
18936 test "$cross_compiling" = yes || | |
18937 $as_test_x conftest$ac_exeext | |
18938 }; then | |
18939 ac_cv_lib_kvm_kvm_open=yes | 11523 ac_cv_lib_kvm_kvm_open=yes |
18940 else | 11524 else |
18941 $as_echo "$as_me: failed program was:" >&5 | 11525 ac_cv_lib_kvm_kvm_open=no |
18942 sed 's/^/| /' conftest.$ac_ext >&5 | 11526 fi |
18943 | 11527 rm -f core conftest.err conftest.$ac_objext \ |
18944 ac_cv_lib_kvm_kvm_open=no | 11528 conftest$ac_exeext conftest.$ac_ext |
18945 fi | |
18946 | |
18947 rm -rf conftest.dSYM | |
18948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18949 conftest$ac_exeext conftest.$ac_ext | |
18950 LIBS=$ac_check_lib_save_LIBS | 11529 LIBS=$ac_check_lib_save_LIBS |
18951 fi | 11530 fi |
18952 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 | 11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 |
18953 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } | 11532 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } |
18954 if test $ac_cv_lib_kvm_kvm_open = yes; then | 11533 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then : |
18955 LIBS="-lkvm $LIBS" | 11534 LIBS="-lkvm $LIBS" |
18956 fi | 11535 fi |
18957 | 11536 |
18958 # Check for the 4.4BSD definition of getloadavg. | 11537 # Check for the 4.4BSD definition of getloadavg. |
18959 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 | 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 |
18960 $as_echo_n "checking for getloadavg in -lutil... " >&6; } | 11539 $as_echo_n "checking for getloadavg in -lutil... " >&6; } |
18961 if test "${ac_cv_lib_util_getloadavg+set}" = set; then | 11540 if test "${ac_cv_lib_util_getloadavg+set}" = set; then : |
18962 $as_echo_n "(cached) " >&6 | 11541 $as_echo_n "(cached) " >&6 |
18963 else | 11542 else |
18964 ac_check_lib_save_LIBS=$LIBS | 11543 ac_check_lib_save_LIBS=$LIBS |
18965 LIBS="-lutil $LIBS" | 11544 LIBS="-lutil $LIBS" |
18966 cat >conftest.$ac_ext <<_ACEOF | 11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18967 /* confdefs.h. */ | |
18968 _ACEOF | |
18969 cat confdefs.h >>conftest.$ac_ext | |
18970 cat >>conftest.$ac_ext <<_ACEOF | |
18971 /* end confdefs.h. */ | 11546 /* end confdefs.h. */ |
18972 | 11547 |
18973 /* Override any GCC internal prototype to avoid an error. | 11548 /* Override any GCC internal prototype to avoid an error. |
18974 Use char because int might match the return type of a GCC | 11549 Use char because int might match the return type of a GCC |
18975 builtin and then its argument prototype would still apply. */ | 11550 builtin and then its argument prototype would still apply. */ |
18983 return getloadavg (); | 11558 return getloadavg (); |
18984 ; | 11559 ; |
18985 return 0; | 11560 return 0; |
18986 } | 11561 } |
18987 _ACEOF | 11562 _ACEOF |
18988 rm -f conftest.$ac_objext conftest$ac_exeext | 11563 if ac_fn_c_try_link "$LINENO"; then : |
18989 if { (ac_try="$ac_link" | |
18990 case "(($ac_try" in | |
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18992 *) ac_try_echo=$ac_try;; | |
18993 esac | |
18994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18995 $as_echo "$ac_try_echo") >&5 | |
18996 (eval "$ac_link") 2>conftest.er1 | |
18997 ac_status=$? | |
18998 grep -v '^ *+' conftest.er1 >conftest.err | |
18999 rm -f conftest.er1 | |
19000 cat conftest.err >&5 | |
19001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19002 (exit $ac_status); } && { | |
19003 test -z "$ac_c_werror_flag" || | |
19004 test ! -s conftest.err | |
19005 } && test -s conftest$ac_exeext && { | |
19006 test "$cross_compiling" = yes || | |
19007 $as_test_x conftest$ac_exeext | |
19008 }; then | |
19009 ac_cv_lib_util_getloadavg=yes | 11564 ac_cv_lib_util_getloadavg=yes |
19010 else | 11565 else |
19011 $as_echo "$as_me: failed program was:" >&5 | 11566 ac_cv_lib_util_getloadavg=no |
19012 sed 's/^/| /' conftest.$ac_ext >&5 | 11567 fi |
19013 | 11568 rm -f core conftest.err conftest.$ac_objext \ |
19014 ac_cv_lib_util_getloadavg=no | 11569 conftest$ac_exeext conftest.$ac_ext |
19015 fi | |
19016 | |
19017 rm -rf conftest.dSYM | |
19018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19019 conftest$ac_exeext conftest.$ac_ext | |
19020 LIBS=$ac_check_lib_save_LIBS | 11570 LIBS=$ac_check_lib_save_LIBS |
19021 fi | 11571 fi |
19022 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 | 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 |
19023 $as_echo "$ac_cv_lib_util_getloadavg" >&6; } | 11573 $as_echo "$ac_cv_lib_util_getloadavg" >&6; } |
19024 if test $ac_cv_lib_util_getloadavg = yes; then | 11574 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then : |
19025 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | 11575 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes |
19026 fi | 11576 fi |
19027 | 11577 |
19028 fi | 11578 fi |
19029 | 11579 |
19030 if test $ac_have_func = no; then | 11580 if test $ac_have_func = no; then |
19031 # There is a commonly available library for RS/6000 AIX. | 11581 # There is a commonly available library for RS/6000 AIX. |
19032 # Since it is not a standard part of AIX, it might be installed locally. | 11582 # Since it is not a standard part of AIX, it might be installed locally. |
19033 ac_getloadavg_LIBS=$LIBS | 11583 ac_getloadavg_LIBS=$LIBS |
19034 LIBS="-L/usr/local/lib $LIBS" | 11584 LIBS="-L/usr/local/lib $LIBS" |
19035 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 | 11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 |
19036 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } | 11586 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } |
19037 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | 11587 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then : |
19038 $as_echo_n "(cached) " >&6 | 11588 $as_echo_n "(cached) " >&6 |
19039 else | 11589 else |
19040 ac_check_lib_save_LIBS=$LIBS | 11590 ac_check_lib_save_LIBS=$LIBS |
19041 LIBS="-lgetloadavg $LIBS" | 11591 LIBS="-lgetloadavg $LIBS" |
19042 cat >conftest.$ac_ext <<_ACEOF | 11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19043 /* confdefs.h. */ | |
19044 _ACEOF | |
19045 cat confdefs.h >>conftest.$ac_ext | |
19046 cat >>conftest.$ac_ext <<_ACEOF | |
19047 /* end confdefs.h. */ | 11593 /* end confdefs.h. */ |
19048 | 11594 |
19049 /* Override any GCC internal prototype to avoid an error. | 11595 /* Override any GCC internal prototype to avoid an error. |
19050 Use char because int might match the return type of a GCC | 11596 Use char because int might match the return type of a GCC |
19051 builtin and then its argument prototype would still apply. */ | 11597 builtin and then its argument prototype would still apply. */ |
19059 return getloadavg (); | 11605 return getloadavg (); |
19060 ; | 11606 ; |
19061 return 0; | 11607 return 0; |
19062 } | 11608 } |
19063 _ACEOF | 11609 _ACEOF |
19064 rm -f conftest.$ac_objext conftest$ac_exeext | 11610 if ac_fn_c_try_link "$LINENO"; then : |
19065 if { (ac_try="$ac_link" | |
19066 case "(($ac_try" in | |
19067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19068 *) ac_try_echo=$ac_try;; | |
19069 esac | |
19070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19071 $as_echo "$ac_try_echo") >&5 | |
19072 (eval "$ac_link") 2>conftest.er1 | |
19073 ac_status=$? | |
19074 grep -v '^ *+' conftest.er1 >conftest.err | |
19075 rm -f conftest.er1 | |
19076 cat conftest.err >&5 | |
19077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19078 (exit $ac_status); } && { | |
19079 test -z "$ac_c_werror_flag" || | |
19080 test ! -s conftest.err | |
19081 } && test -s conftest$ac_exeext && { | |
19082 test "$cross_compiling" = yes || | |
19083 $as_test_x conftest$ac_exeext | |
19084 }; then | |
19085 ac_cv_lib_getloadavg_getloadavg=yes | 11611 ac_cv_lib_getloadavg_getloadavg=yes |
19086 else | 11612 else |
19087 $as_echo "$as_me: failed program was:" >&5 | 11613 ac_cv_lib_getloadavg_getloadavg=no |
19088 sed 's/^/| /' conftest.$ac_ext >&5 | 11614 fi |
19089 | 11615 rm -f core conftest.err conftest.$ac_objext \ |
19090 ac_cv_lib_getloadavg_getloadavg=no | 11616 conftest$ac_exeext conftest.$ac_ext |
19091 fi | |
19092 | |
19093 rm -rf conftest.dSYM | |
19094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19095 conftest$ac_exeext conftest.$ac_ext | |
19096 LIBS=$ac_check_lib_save_LIBS | 11617 LIBS=$ac_check_lib_save_LIBS |
19097 fi | 11618 fi |
19098 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 | 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
19099 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } | 11620 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } |
19100 if test $ac_cv_lib_getloadavg_getloadavg = yes; then | 11621 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then : |
19101 LIBS="-lgetloadavg $LIBS" | 11622 LIBS="-lgetloadavg $LIBS" |
19102 else | 11623 else |
19103 LIBS=$ac_getloadavg_LIBS | 11624 LIBS=$ac_getloadavg_LIBS |
19104 fi | 11625 fi |
19105 | 11626 |
19106 fi | 11627 fi |
19107 | 11628 |
19108 # Make sure it is really in the library, if we think we found it, | 11629 # Make sure it is really in the library, if we think we found it, |
19109 # otherwise set up the replacement function. | 11630 # otherwise set up the replacement function. |
19110 | |
19111 for ac_func in getloadavg | 11631 for ac_func in getloadavg |
19112 do | 11632 do : |
19113 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11633 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" |
19114 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 11634 if test "x$ac_cv_func_getloadavg" = x""yes; then : |
19115 $as_echo_n "checking for $ac_func... " >&6; } | |
19116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
19117 $as_echo_n "(cached) " >&6 | |
19118 else | |
19119 cat >conftest.$ac_ext <<_ACEOF | |
19120 /* confdefs.h. */ | |
19121 _ACEOF | |
19122 cat confdefs.h >>conftest.$ac_ext | |
19123 cat >>conftest.$ac_ext <<_ACEOF | |
19124 /* end confdefs.h. */ | |
19125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19126 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19127 #define $ac_func innocuous_$ac_func | |
19128 | |
19129 /* System header to define __stub macros and hopefully few prototypes, | |
19130 which can conflict with char $ac_func (); below. | |
19131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19132 <limits.h> exists even on freestanding compilers. */ | |
19133 | |
19134 #ifdef __STDC__ | |
19135 # include <limits.h> | |
19136 #else | |
19137 # include <assert.h> | |
19138 #endif | |
19139 | |
19140 #undef $ac_func | |
19141 | |
19142 /* Override any GCC internal prototype to avoid an error. | |
19143 Use char because int might match the return type of a GCC | |
19144 builtin and then its argument prototype would still apply. */ | |
19145 #ifdef __cplusplus | |
19146 extern "C" | |
19147 #endif | |
19148 char $ac_func (); | |
19149 /* The GNU C library defines this for functions which it implements | |
19150 to always fail with ENOSYS. Some functions are actually named | |
19151 something starting with __ and the normal name is an alias. */ | |
19152 #if defined __stub_$ac_func || defined __stub___$ac_func | |
19153 choke me | |
19154 #endif | |
19155 | |
19156 int | |
19157 main () | |
19158 { | |
19159 return $ac_func (); | |
19160 ; | |
19161 return 0; | |
19162 } | |
19163 _ACEOF | |
19164 rm -f conftest.$ac_objext conftest$ac_exeext | |
19165 if { (ac_try="$ac_link" | |
19166 case "(($ac_try" in | |
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19168 *) ac_try_echo=$ac_try;; | |
19169 esac | |
19170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19171 $as_echo "$ac_try_echo") >&5 | |
19172 (eval "$ac_link") 2>conftest.er1 | |
19173 ac_status=$? | |
19174 grep -v '^ *+' conftest.er1 >conftest.err | |
19175 rm -f conftest.er1 | |
19176 cat conftest.err >&5 | |
19177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19178 (exit $ac_status); } && { | |
19179 test -z "$ac_c_werror_flag" || | |
19180 test ! -s conftest.err | |
19181 } && test -s conftest$ac_exeext && { | |
19182 test "$cross_compiling" = yes || | |
19183 $as_test_x conftest$ac_exeext | |
19184 }; then | |
19185 eval "$as_ac_var=yes" | |
19186 else | |
19187 $as_echo "$as_me: failed program was:" >&5 | |
19188 sed 's/^/| /' conftest.$ac_ext >&5 | |
19189 | |
19190 eval "$as_ac_var=no" | |
19191 fi | |
19192 | |
19193 rm -rf conftest.dSYM | |
19194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19195 conftest$ac_exeext conftest.$ac_ext | |
19196 fi | |
19197 ac_res=`eval 'as_val=${'$as_ac_var'} | |
19198 $as_echo "$as_val"'` | |
19199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19200 $as_echo "$ac_res" >&6; } | |
19201 if test `eval 'as_val=${'$as_ac_var'} | |
19202 $as_echo "$as_val"'` = yes; then | |
19203 cat >>confdefs.h <<_ACEOF | 11635 cat >>confdefs.h <<_ACEOF |
19204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 11636 #define HAVE_GETLOADAVG 1 |
19205 _ACEOF | 11637 _ACEOF |
19206 | 11638 |
19207 else | 11639 else |
19208 case " $LIBOBJS " in | 11640 case " $LIBOBJS " in |
19209 *" getloadavg.$ac_objext "* ) ;; | 11641 *" getloadavg.$ac_objext "* ) ;; |
19210 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | 11642 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" |
19211 ;; | 11643 ;; |
19212 esac | 11644 esac |
19213 | 11645 |
19214 | 11646 |
19215 cat >>confdefs.h <<\_ACEOF | 11647 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h |
19216 #define C_GETLOADAVG 1 | |
19217 _ACEOF | |
19218 | 11648 |
19219 # Figure out what our getloadavg.c needs. | 11649 # Figure out what our getloadavg.c needs. |
19220 ac_have_func=no | 11650 ac_have_func=no |
19221 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | 11651 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" |
19222 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | 11652 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then : |
19223 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; } | |
19224 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
19225 $as_echo_n "(cached) " >&6 | |
19226 fi | |
19227 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
19228 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
19229 else | |
19230 # Is the header compilable? | |
19231 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 | |
19232 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; } | |
19233 cat >conftest.$ac_ext <<_ACEOF | |
19234 /* confdefs.h. */ | |
19235 _ACEOF | |
19236 cat confdefs.h >>conftest.$ac_ext | |
19237 cat >>conftest.$ac_ext <<_ACEOF | |
19238 /* end confdefs.h. */ | |
19239 $ac_includes_default | |
19240 #include <sys/dg_sys_info.h> | |
19241 _ACEOF | |
19242 rm -f conftest.$ac_objext | |
19243 if { (ac_try="$ac_compile" | |
19244 case "(($ac_try" in | |
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19246 *) ac_try_echo=$ac_try;; | |
19247 esac | |
19248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19249 $as_echo "$ac_try_echo") >&5 | |
19250 (eval "$ac_compile") 2>conftest.er1 | |
19251 ac_status=$? | |
19252 grep -v '^ *+' conftest.er1 >conftest.err | |
19253 rm -f conftest.er1 | |
19254 cat conftest.err >&5 | |
19255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19256 (exit $ac_status); } && { | |
19257 test -z "$ac_c_werror_flag" || | |
19258 test ! -s conftest.err | |
19259 } && test -s conftest.$ac_objext; then | |
19260 ac_header_compiler=yes | |
19261 else | |
19262 $as_echo "$as_me: failed program was:" >&5 | |
19263 sed 's/^/| /' conftest.$ac_ext >&5 | |
19264 | |
19265 ac_header_compiler=no | |
19266 fi | |
19267 | |
19268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19270 $as_echo "$ac_header_compiler" >&6; } | |
19271 | |
19272 # Is the header present? | |
19273 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 | |
19274 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; } | |
19275 cat >conftest.$ac_ext <<_ACEOF | |
19276 /* confdefs.h. */ | |
19277 _ACEOF | |
19278 cat confdefs.h >>conftest.$ac_ext | |
19279 cat >>conftest.$ac_ext <<_ACEOF | |
19280 /* end confdefs.h. */ | |
19281 #include <sys/dg_sys_info.h> | |
19282 _ACEOF | |
19283 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
19284 case "(($ac_try" in | |
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19286 *) ac_try_echo=$ac_try;; | |
19287 esac | |
19288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19289 $as_echo "$ac_try_echo") >&5 | |
19290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
19291 ac_status=$? | |
19292 grep -v '^ *+' conftest.er1 >conftest.err | |
19293 rm -f conftest.er1 | |
19294 cat conftest.err >&5 | |
19295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19296 (exit $ac_status); } >/dev/null && { | |
19297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19298 test ! -s conftest.err | |
19299 }; then | |
19300 ac_header_preproc=yes | |
19301 else | |
19302 $as_echo "$as_me: failed program was:" >&5 | |
19303 sed 's/^/| /' conftest.$ac_ext >&5 | |
19304 | |
19305 ac_header_preproc=no | |
19306 fi | |
19307 | |
19308 rm -f conftest.err conftest.$ac_ext | |
19309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19310 $as_echo "$ac_header_preproc" >&6; } | |
19311 | |
19312 # So? What about this header? | |
19313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19314 yes:no: ) | |
19315 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19316 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19317 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 | |
19318 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;} | |
19319 ac_header_preproc=yes | |
19320 ;; | |
19321 no:yes:* ) | |
19322 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 | |
19323 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
19324 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 | |
19325 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
19326 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 | |
19327 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} | |
19328 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19329 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
19330 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 | |
19331 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} | |
19332 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 | |
19333 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} | |
19334 | |
19335 ;; | |
19336 esac | |
19337 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
19338 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; } | |
19339 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
19340 $as_echo_n "(cached) " >&6 | |
19341 else | |
19342 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
19343 fi | |
19344 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
19345 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
19346 | |
19347 fi | |
19348 if test $ac_cv_header_sys_dg_sys_info_h = yes; then | |
19349 ac_have_func=yes | 11653 ac_have_func=yes |
19350 | 11654 |
19351 cat >>confdefs.h <<\_ACEOF | 11655 $as_echo "#define DGUX 1" >>confdefs.h |
19352 #define DGUX 1 | 11656 |
19353 _ACEOF | 11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 |
19354 | |
19355 | |
19356 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 | |
19357 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } | 11658 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } |
19358 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | 11659 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then : |
19359 $as_echo_n "(cached) " >&6 | 11660 $as_echo_n "(cached) " >&6 |
19360 else | 11661 else |
19361 ac_check_lib_save_LIBS=$LIBS | 11662 ac_check_lib_save_LIBS=$LIBS |
19362 LIBS="-ldgc $LIBS" | 11663 LIBS="-ldgc $LIBS" |
19363 cat >conftest.$ac_ext <<_ACEOF | 11664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19364 /* confdefs.h. */ | |
19365 _ACEOF | |
19366 cat confdefs.h >>conftest.$ac_ext | |
19367 cat >>conftest.$ac_ext <<_ACEOF | |
19368 /* end confdefs.h. */ | 11665 /* end confdefs.h. */ |
19369 | 11666 |
19370 /* Override any GCC internal prototype to avoid an error. | 11667 /* Override any GCC internal prototype to avoid an error. |
19371 Use char because int might match the return type of a GCC | 11668 Use char because int might match the return type of a GCC |
19372 builtin and then its argument prototype would still apply. */ | 11669 builtin and then its argument prototype would still apply. */ |
19380 return dg_sys_info (); | 11677 return dg_sys_info (); |
19381 ; | 11678 ; |
19382 return 0; | 11679 return 0; |
19383 } | 11680 } |
19384 _ACEOF | 11681 _ACEOF |
19385 rm -f conftest.$ac_objext conftest$ac_exeext | 11682 if ac_fn_c_try_link "$LINENO"; then : |
19386 if { (ac_try="$ac_link" | |
19387 case "(($ac_try" in | |
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19389 *) ac_try_echo=$ac_try;; | |
19390 esac | |
19391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19392 $as_echo "$ac_try_echo") >&5 | |
19393 (eval "$ac_link") 2>conftest.er1 | |
19394 ac_status=$? | |
19395 grep -v '^ *+' conftest.er1 >conftest.err | |
19396 rm -f conftest.er1 | |
19397 cat conftest.err >&5 | |
19398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19399 (exit $ac_status); } && { | |
19400 test -z "$ac_c_werror_flag" || | |
19401 test ! -s conftest.err | |
19402 } && test -s conftest$ac_exeext && { | |
19403 test "$cross_compiling" = yes || | |
19404 $as_test_x conftest$ac_exeext | |
19405 }; then | |
19406 ac_cv_lib_dgc_dg_sys_info=yes | 11683 ac_cv_lib_dgc_dg_sys_info=yes |
19407 else | 11684 else |
19408 $as_echo "$as_me: failed program was:" >&5 | 11685 ac_cv_lib_dgc_dg_sys_info=no |
19409 sed 's/^/| /' conftest.$ac_ext >&5 | 11686 fi |
19410 | 11687 rm -f core conftest.err conftest.$ac_objext \ |
19411 ac_cv_lib_dgc_dg_sys_info=no | 11688 conftest$ac_exeext conftest.$ac_ext |
19412 fi | |
19413 | |
19414 rm -rf conftest.dSYM | |
19415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19416 conftest$ac_exeext conftest.$ac_ext | |
19417 LIBS=$ac_check_lib_save_LIBS | 11689 LIBS=$ac_check_lib_save_LIBS |
19418 fi | 11690 fi |
19419 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 | 11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
19420 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } | 11692 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } |
19421 if test $ac_cv_lib_dgc_dg_sys_info = yes; then | 11693 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then : |
19422 cat >>confdefs.h <<_ACEOF | 11694 cat >>confdefs.h <<_ACEOF |
19423 #define HAVE_LIBDGC 1 | 11695 #define HAVE_LIBDGC 1 |
19424 _ACEOF | 11696 _ACEOF |
19425 | 11697 |
19426 LIBS="-ldgc $LIBS" | 11698 LIBS="-ldgc $LIBS" |
19429 | 11701 |
19430 fi | 11702 fi |
19431 | 11703 |
19432 | 11704 |
19433 | 11705 |
19434 if test "${ac_cv_header_locale_h+set}" = set; then | 11706 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" |
19435 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5 | 11707 if test "x$ac_cv_header_locale_h" = x""yes; then : |
19436 $as_echo_n "checking for locale.h... " >&6; } | 11708 |
19437 if test "${ac_cv_header_locale_h+set}" = set; then | 11709 fi |
19438 $as_echo_n "(cached) " >&6 | |
19439 fi | |
19440 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
19441 $as_echo "$ac_cv_header_locale_h" >&6; } | |
19442 else | |
19443 # Is the header compilable? | |
19444 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5 | |
19445 $as_echo_n "checking locale.h usability... " >&6; } | |
19446 cat >conftest.$ac_ext <<_ACEOF | |
19447 /* confdefs.h. */ | |
19448 _ACEOF | |
19449 cat confdefs.h >>conftest.$ac_ext | |
19450 cat >>conftest.$ac_ext <<_ACEOF | |
19451 /* end confdefs.h. */ | |
19452 $ac_includes_default | |
19453 #include <locale.h> | |
19454 _ACEOF | |
19455 rm -f conftest.$ac_objext | |
19456 if { (ac_try="$ac_compile" | |
19457 case "(($ac_try" in | |
19458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19459 *) ac_try_echo=$ac_try;; | |
19460 esac | |
19461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19462 $as_echo "$ac_try_echo") >&5 | |
19463 (eval "$ac_compile") 2>conftest.er1 | |
19464 ac_status=$? | |
19465 grep -v '^ *+' conftest.er1 >conftest.err | |
19466 rm -f conftest.er1 | |
19467 cat conftest.err >&5 | |
19468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19469 (exit $ac_status); } && { | |
19470 test -z "$ac_c_werror_flag" || | |
19471 test ! -s conftest.err | |
19472 } && test -s conftest.$ac_objext; then | |
19473 ac_header_compiler=yes | |
19474 else | |
19475 $as_echo "$as_me: failed program was:" >&5 | |
19476 sed 's/^/| /' conftest.$ac_ext >&5 | |
19477 | |
19478 ac_header_compiler=no | |
19479 fi | |
19480 | |
19481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19482 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19483 $as_echo "$ac_header_compiler" >&6; } | |
19484 | |
19485 # Is the header present? | |
19486 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5 | |
19487 $as_echo_n "checking locale.h presence... " >&6; } | |
19488 cat >conftest.$ac_ext <<_ACEOF | |
19489 /* confdefs.h. */ | |
19490 _ACEOF | |
19491 cat confdefs.h >>conftest.$ac_ext | |
19492 cat >>conftest.$ac_ext <<_ACEOF | |
19493 /* end confdefs.h. */ | |
19494 #include <locale.h> | |
19495 _ACEOF | |
19496 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
19497 case "(($ac_try" in | |
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19499 *) ac_try_echo=$ac_try;; | |
19500 esac | |
19501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19502 $as_echo "$ac_try_echo") >&5 | |
19503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
19504 ac_status=$? | |
19505 grep -v '^ *+' conftest.er1 >conftest.err | |
19506 rm -f conftest.er1 | |
19507 cat conftest.err >&5 | |
19508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19509 (exit $ac_status); } >/dev/null && { | |
19510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19511 test ! -s conftest.err | |
19512 }; then | |
19513 ac_header_preproc=yes | |
19514 else | |
19515 $as_echo "$as_me: failed program was:" >&5 | |
19516 sed 's/^/| /' conftest.$ac_ext >&5 | |
19517 | |
19518 ac_header_preproc=no | |
19519 fi | |
19520 | |
19521 rm -f conftest.err conftest.$ac_ext | |
19522 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19523 $as_echo "$ac_header_preproc" >&6; } | |
19524 | |
19525 # So? What about this header? | |
19526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19527 yes:no: ) | |
19528 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19529 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19530 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 | |
19531 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} | |
19532 ac_header_preproc=yes | |
19533 ;; | |
19534 no:yes:* ) | |
19535 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 | |
19536 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
19537 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 | |
19538 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
19539 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 | |
19540 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} | |
19541 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19542 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
19543 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 | |
19544 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} | |
19545 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 | |
19546 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} | |
19547 | |
19548 ;; | |
19549 esac | |
19550 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5 | |
19551 $as_echo_n "checking for locale.h... " >&6; } | |
19552 if test "${ac_cv_header_locale_h+set}" = set; then | |
19553 $as_echo_n "(cached) " >&6 | |
19554 else | |
19555 ac_cv_header_locale_h=$ac_header_preproc | |
19556 fi | |
19557 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
19558 $as_echo "$ac_cv_header_locale_h" >&6; } | |
19559 | |
19560 fi | |
19561 | |
19562 | 11710 |
19563 | 11711 |
19564 for ac_func in setlocale | 11712 for ac_func in setlocale |
19565 do | 11713 do : |
19566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11714 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" |
19567 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 11715 if test "x$ac_cv_func_setlocale" = x""yes; then : |
19568 $as_echo_n "checking for $ac_func... " >&6; } | |
19569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
19570 $as_echo_n "(cached) " >&6 | |
19571 else | |
19572 cat >conftest.$ac_ext <<_ACEOF | |
19573 /* confdefs.h. */ | |
19574 _ACEOF | |
19575 cat confdefs.h >>conftest.$ac_ext | |
19576 cat >>conftest.$ac_ext <<_ACEOF | |
19577 /* end confdefs.h. */ | |
19578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19579 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19580 #define $ac_func innocuous_$ac_func | |
19581 | |
19582 /* System header to define __stub macros and hopefully few prototypes, | |
19583 which can conflict with char $ac_func (); below. | |
19584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19585 <limits.h> exists even on freestanding compilers. */ | |
19586 | |
19587 #ifdef __STDC__ | |
19588 # include <limits.h> | |
19589 #else | |
19590 # include <assert.h> | |
19591 #endif | |
19592 | |
19593 #undef $ac_func | |
19594 | |
19595 /* Override any GCC internal prototype to avoid an error. | |
19596 Use char because int might match the return type of a GCC | |
19597 builtin and then its argument prototype would still apply. */ | |
19598 #ifdef __cplusplus | |
19599 extern "C" | |
19600 #endif | |
19601 char $ac_func (); | |
19602 /* The GNU C library defines this for functions which it implements | |
19603 to always fail with ENOSYS. Some functions are actually named | |
19604 something starting with __ and the normal name is an alias. */ | |
19605 #if defined __stub_$ac_func || defined __stub___$ac_func | |
19606 choke me | |
19607 #endif | |
19608 | |
19609 int | |
19610 main () | |
19611 { | |
19612 return $ac_func (); | |
19613 ; | |
19614 return 0; | |
19615 } | |
19616 _ACEOF | |
19617 rm -f conftest.$ac_objext conftest$ac_exeext | |
19618 if { (ac_try="$ac_link" | |
19619 case "(($ac_try" in | |
19620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19621 *) ac_try_echo=$ac_try;; | |
19622 esac | |
19623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19624 $as_echo "$ac_try_echo") >&5 | |
19625 (eval "$ac_link") 2>conftest.er1 | |
19626 ac_status=$? | |
19627 grep -v '^ *+' conftest.er1 >conftest.err | |
19628 rm -f conftest.er1 | |
19629 cat conftest.err >&5 | |
19630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19631 (exit $ac_status); } && { | |
19632 test -z "$ac_c_werror_flag" || | |
19633 test ! -s conftest.err | |
19634 } && test -s conftest$ac_exeext && { | |
19635 test "$cross_compiling" = yes || | |
19636 $as_test_x conftest$ac_exeext | |
19637 }; then | |
19638 eval "$as_ac_var=yes" | |
19639 else | |
19640 $as_echo "$as_me: failed program was:" >&5 | |
19641 sed 's/^/| /' conftest.$ac_ext >&5 | |
19642 | |
19643 eval "$as_ac_var=no" | |
19644 fi | |
19645 | |
19646 rm -rf conftest.dSYM | |
19647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19648 conftest$ac_exeext conftest.$ac_ext | |
19649 fi | |
19650 ac_res=`eval 'as_val=${'$as_ac_var'} | |
19651 $as_echo "$as_val"'` | |
19652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19653 $as_echo "$ac_res" >&6; } | |
19654 if test `eval 'as_val=${'$as_ac_var'} | |
19655 $as_echo "$as_val"'` = yes; then | |
19656 cat >>confdefs.h <<_ACEOF | 11716 cat >>confdefs.h <<_ACEOF |
19657 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 11717 #define HAVE_SETLOCALE 1 |
19658 _ACEOF | 11718 _ACEOF |
19659 | 11719 |
19660 fi | 11720 fi |
19661 done | 11721 done |
19662 | 11722 |
19665 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | 11725 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because |
19666 # Irix 4.0.5F has the header but not the library. | 11726 # Irix 4.0.5F has the header but not the library. |
19667 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | 11727 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then |
19668 ac_have_func=yes | 11728 ac_have_func=yes |
19669 | 11729 |
19670 cat >>confdefs.h <<\_ACEOF | 11730 $as_echo "#define SVR4 1" >>confdefs.h |
19671 #define SVR4 1 | |
19672 _ACEOF | |
19673 | 11731 |
19674 fi | 11732 fi |
19675 | 11733 |
19676 if test $ac_have_func = no; then | 11734 if test $ac_have_func = no; then |
19677 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | 11735 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" |
19678 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | 11736 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then : |
19679 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; } | |
19680 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
19681 $as_echo_n "(cached) " >&6 | |
19682 fi | |
19683 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
19684 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; } | |
19685 else | |
19686 # Is the header compilable? | |
19687 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 | |
19688 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; } | |
19689 cat >conftest.$ac_ext <<_ACEOF | |
19690 /* confdefs.h. */ | |
19691 _ACEOF | |
19692 cat confdefs.h >>conftest.$ac_ext | |
19693 cat >>conftest.$ac_ext <<_ACEOF | |
19694 /* end confdefs.h. */ | |
19695 $ac_includes_default | |
19696 #include <inq_stats/cpustats.h> | |
19697 _ACEOF | |
19698 rm -f conftest.$ac_objext | |
19699 if { (ac_try="$ac_compile" | |
19700 case "(($ac_try" in | |
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19702 *) ac_try_echo=$ac_try;; | |
19703 esac | |
19704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19705 $as_echo "$ac_try_echo") >&5 | |
19706 (eval "$ac_compile") 2>conftest.er1 | |
19707 ac_status=$? | |
19708 grep -v '^ *+' conftest.er1 >conftest.err | |
19709 rm -f conftest.er1 | |
19710 cat conftest.err >&5 | |
19711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19712 (exit $ac_status); } && { | |
19713 test -z "$ac_c_werror_flag" || | |
19714 test ! -s conftest.err | |
19715 } && test -s conftest.$ac_objext; then | |
19716 ac_header_compiler=yes | |
19717 else | |
19718 $as_echo "$as_me: failed program was:" >&5 | |
19719 sed 's/^/| /' conftest.$ac_ext >&5 | |
19720 | |
19721 ac_header_compiler=no | |
19722 fi | |
19723 | |
19724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19725 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19726 $as_echo "$ac_header_compiler" >&6; } | |
19727 | |
19728 # Is the header present? | |
19729 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 | |
19730 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; } | |
19731 cat >conftest.$ac_ext <<_ACEOF | |
19732 /* confdefs.h. */ | |
19733 _ACEOF | |
19734 cat confdefs.h >>conftest.$ac_ext | |
19735 cat >>conftest.$ac_ext <<_ACEOF | |
19736 /* end confdefs.h. */ | |
19737 #include <inq_stats/cpustats.h> | |
19738 _ACEOF | |
19739 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
19740 case "(($ac_try" in | |
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19742 *) ac_try_echo=$ac_try;; | |
19743 esac | |
19744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19745 $as_echo "$ac_try_echo") >&5 | |
19746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
19747 ac_status=$? | |
19748 grep -v '^ *+' conftest.er1 >conftest.err | |
19749 rm -f conftest.er1 | |
19750 cat conftest.err >&5 | |
19751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19752 (exit $ac_status); } >/dev/null && { | |
19753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19754 test ! -s conftest.err | |
19755 }; then | |
19756 ac_header_preproc=yes | |
19757 else | |
19758 $as_echo "$as_me: failed program was:" >&5 | |
19759 sed 's/^/| /' conftest.$ac_ext >&5 | |
19760 | |
19761 ac_header_preproc=no | |
19762 fi | |
19763 | |
19764 rm -f conftest.err conftest.$ac_ext | |
19765 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19766 $as_echo "$ac_header_preproc" >&6; } | |
19767 | |
19768 # So? What about this header? | |
19769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19770 yes:no: ) | |
19771 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19772 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19773 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5 | |
19774 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;} | |
19775 ac_header_preproc=yes | |
19776 ;; | |
19777 no:yes:* ) | |
19778 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 | |
19779 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
19780 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 | |
19781 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
19782 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5 | |
19783 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;} | |
19784 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19785 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
19786 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 | |
19787 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} | |
19788 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5 | |
19789 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
19790 | |
19791 ;; | |
19792 esac | |
19793 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
19794 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; } | |
19795 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
19796 $as_echo_n "(cached) " >&6 | |
19797 else | |
19798 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
19799 fi | |
19800 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
19801 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; } | |
19802 | |
19803 fi | |
19804 if test $ac_cv_header_inq_stats_cpustats_h = yes; then | |
19805 ac_have_func=yes | 11737 ac_have_func=yes |
19806 | 11738 |
19807 cat >>confdefs.h <<\_ACEOF | 11739 $as_echo "#define UMAX 1" >>confdefs.h |
19808 #define UMAX 1 | 11740 |
19809 _ACEOF | 11741 |
19810 | 11742 $as_echo "#define UMAX4_3 1" >>confdefs.h |
19811 | |
19812 cat >>confdefs.h <<\_ACEOF | |
19813 #define UMAX4_3 1 | |
19814 _ACEOF | |
19815 | 11743 |
19816 fi | 11744 fi |
19817 | 11745 |
19818 | 11746 |
19819 fi | 11747 fi |
19820 | 11748 |
19821 if test $ac_have_func = no; then | 11749 if test $ac_have_func = no; then |
19822 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | 11750 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" |
19823 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | 11751 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then : |
19824 $as_echo_n "checking for sys/cpustats.h... " >&6; } | 11752 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h |
19825 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
19826 $as_echo_n "(cached) " >&6 | |
19827 fi | |
19828 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
19829 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; } | |
19830 else | |
19831 # Is the header compilable? | |
19832 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 | |
19833 $as_echo_n "checking sys/cpustats.h usability... " >&6; } | |
19834 cat >conftest.$ac_ext <<_ACEOF | |
19835 /* confdefs.h. */ | |
19836 _ACEOF | |
19837 cat confdefs.h >>conftest.$ac_ext | |
19838 cat >>conftest.$ac_ext <<_ACEOF | |
19839 /* end confdefs.h. */ | |
19840 $ac_includes_default | |
19841 #include <sys/cpustats.h> | |
19842 _ACEOF | |
19843 rm -f conftest.$ac_objext | |
19844 if { (ac_try="$ac_compile" | |
19845 case "(($ac_try" in | |
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19847 *) ac_try_echo=$ac_try;; | |
19848 esac | |
19849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19850 $as_echo "$ac_try_echo") >&5 | |
19851 (eval "$ac_compile") 2>conftest.er1 | |
19852 ac_status=$? | |
19853 grep -v '^ *+' conftest.er1 >conftest.err | |
19854 rm -f conftest.er1 | |
19855 cat conftest.err >&5 | |
19856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19857 (exit $ac_status); } && { | |
19858 test -z "$ac_c_werror_flag" || | |
19859 test ! -s conftest.err | |
19860 } && test -s conftest.$ac_objext; then | |
19861 ac_header_compiler=yes | |
19862 else | |
19863 $as_echo "$as_me: failed program was:" >&5 | |
19864 sed 's/^/| /' conftest.$ac_ext >&5 | |
19865 | |
19866 ac_header_compiler=no | |
19867 fi | |
19868 | |
19869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19870 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19871 $as_echo "$ac_header_compiler" >&6; } | |
19872 | |
19873 # Is the header present? | |
19874 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 | |
19875 $as_echo_n "checking sys/cpustats.h presence... " >&6; } | |
19876 cat >conftest.$ac_ext <<_ACEOF | |
19877 /* confdefs.h. */ | |
19878 _ACEOF | |
19879 cat confdefs.h >>conftest.$ac_ext | |
19880 cat >>conftest.$ac_ext <<_ACEOF | |
19881 /* end confdefs.h. */ | |
19882 #include <sys/cpustats.h> | |
19883 _ACEOF | |
19884 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
19885 case "(($ac_try" in | |
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19887 *) ac_try_echo=$ac_try;; | |
19888 esac | |
19889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19890 $as_echo "$ac_try_echo") >&5 | |
19891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
19892 ac_status=$? | |
19893 grep -v '^ *+' conftest.er1 >conftest.err | |
19894 rm -f conftest.er1 | |
19895 cat conftest.err >&5 | |
19896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19897 (exit $ac_status); } >/dev/null && { | |
19898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19899 test ! -s conftest.err | |
19900 }; then | |
19901 ac_header_preproc=yes | |
19902 else | |
19903 $as_echo "$as_me: failed program was:" >&5 | |
19904 sed 's/^/| /' conftest.$ac_ext >&5 | |
19905 | |
19906 ac_header_preproc=no | |
19907 fi | |
19908 | |
19909 rm -f conftest.err conftest.$ac_ext | |
19910 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19911 $as_echo "$ac_header_preproc" >&6; } | |
19912 | |
19913 # So? What about this header? | |
19914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19915 yes:no: ) | |
19916 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19917 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19918 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5 | |
19919 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;} | |
19920 ac_header_preproc=yes | |
19921 ;; | |
19922 no:yes:* ) | |
19923 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 | |
19924 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
19925 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 | |
19926 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
19927 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5 | |
19928 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;} | |
19929 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19930 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
19931 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 | |
19932 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} | |
19933 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5 | |
19934 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
19935 | |
19936 ;; | |
19937 esac | |
19938 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
19939 $as_echo_n "checking for sys/cpustats.h... " >&6; } | |
19940 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
19941 $as_echo_n "(cached) " >&6 | |
19942 else | |
19943 ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
19944 fi | |
19945 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
19946 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; } | |
19947 | |
19948 fi | |
19949 if test $ac_cv_header_sys_cpustats_h = yes; then | |
19950 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF | |
19951 #define UMAX 1 | |
19952 _ACEOF | |
19953 | 11753 |
19954 fi | 11754 fi |
19955 | 11755 |
19956 | 11756 |
19957 fi | 11757 fi |
19958 | 11758 |
19959 if test $ac_have_func = no; then | 11759 if test $ac_have_func = no; then |
19960 | 11760 for ac_header in mach/mach.h |
19961 for ac_header in mach/mach.h | 11761 do : |
19962 do | 11762 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" |
19963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 11763 if test "x$ac_cv_header_mach_mach_h" = x""yes; then : |
19964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
19965 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19966 $as_echo_n "checking for $ac_header... " >&6; } | |
19967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
19968 $as_echo_n "(cached) " >&6 | |
19969 fi | |
19970 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
19971 $as_echo "$as_val"'` | |
19972 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19973 $as_echo "$ac_res" >&6; } | |
19974 else | |
19975 # Is the header compilable? | |
19976 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19977 $as_echo_n "checking $ac_header usability... " >&6; } | |
19978 cat >conftest.$ac_ext <<_ACEOF | |
19979 /* confdefs.h. */ | |
19980 _ACEOF | |
19981 cat confdefs.h >>conftest.$ac_ext | |
19982 cat >>conftest.$ac_ext <<_ACEOF | |
19983 /* end confdefs.h. */ | |
19984 $ac_includes_default | |
19985 #include <$ac_header> | |
19986 _ACEOF | |
19987 rm -f conftest.$ac_objext | |
19988 if { (ac_try="$ac_compile" | |
19989 case "(($ac_try" in | |
19990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19991 *) ac_try_echo=$ac_try;; | |
19992 esac | |
19993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19994 $as_echo "$ac_try_echo") >&5 | |
19995 (eval "$ac_compile") 2>conftest.er1 | |
19996 ac_status=$? | |
19997 grep -v '^ *+' conftest.er1 >conftest.err | |
19998 rm -f conftest.er1 | |
19999 cat conftest.err >&5 | |
20000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20001 (exit $ac_status); } && { | |
20002 test -z "$ac_c_werror_flag" || | |
20003 test ! -s conftest.err | |
20004 } && test -s conftest.$ac_objext; then | |
20005 ac_header_compiler=yes | |
20006 else | |
20007 $as_echo "$as_me: failed program was:" >&5 | |
20008 sed 's/^/| /' conftest.$ac_ext >&5 | |
20009 | |
20010 ac_header_compiler=no | |
20011 fi | |
20012 | |
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20014 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20015 $as_echo "$ac_header_compiler" >&6; } | |
20016 | |
20017 # Is the header present? | |
20018 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20019 $as_echo_n "checking $ac_header presence... " >&6; } | |
20020 cat >conftest.$ac_ext <<_ACEOF | |
20021 /* confdefs.h. */ | |
20022 _ACEOF | |
20023 cat confdefs.h >>conftest.$ac_ext | |
20024 cat >>conftest.$ac_ext <<_ACEOF | |
20025 /* end confdefs.h. */ | |
20026 #include <$ac_header> | |
20027 _ACEOF | |
20028 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
20029 case "(($ac_try" in | |
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20031 *) ac_try_echo=$ac_try;; | |
20032 esac | |
20033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20034 $as_echo "$ac_try_echo") >&5 | |
20035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
20036 ac_status=$? | |
20037 grep -v '^ *+' conftest.er1 >conftest.err | |
20038 rm -f conftest.er1 | |
20039 cat conftest.err >&5 | |
20040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20041 (exit $ac_status); } >/dev/null && { | |
20042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20043 test ! -s conftest.err | |
20044 }; then | |
20045 ac_header_preproc=yes | |
20046 else | |
20047 $as_echo "$as_me: failed program was:" >&5 | |
20048 sed 's/^/| /' conftest.$ac_ext >&5 | |
20049 | |
20050 ac_header_preproc=no | |
20051 fi | |
20052 | |
20053 rm -f conftest.err conftest.$ac_ext | |
20054 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20055 $as_echo "$ac_header_preproc" >&6; } | |
20056 | |
20057 # So? What about this header? | |
20058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20059 yes:no: ) | |
20060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20061 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
20063 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20064 ac_header_preproc=yes | |
20065 ;; | |
20066 no:yes:* ) | |
20067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
20068 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
20069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
20070 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20072 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20074 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
20075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
20076 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
20077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
20078 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
20079 | |
20080 ;; | |
20081 esac | |
20082 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20083 $as_echo_n "checking for $ac_header... " >&6; } | |
20084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
20085 $as_echo_n "(cached) " >&6 | |
20086 else | |
20087 eval "$as_ac_Header=\$ac_header_preproc" | |
20088 fi | |
20089 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
20090 $as_echo "$as_val"'` | |
20091 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20092 $as_echo "$ac_res" >&6; } | |
20093 | |
20094 fi | |
20095 if test `eval 'as_val=${'$as_ac_Header'} | |
20096 $as_echo "$as_val"'` = yes; then | |
20097 cat >>confdefs.h <<_ACEOF | 11764 cat >>confdefs.h <<_ACEOF |
20098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 11765 #define HAVE_MACH_MACH_H 1 |
20099 _ACEOF | 11766 _ACEOF |
20100 | 11767 |
20101 fi | 11768 fi |
20102 | 11769 |
20103 done | 11770 done |
20104 | 11771 |
20105 fi | 11772 fi |
20106 | 11773 |
20107 | |
20108 for ac_header in nlist.h | 11774 for ac_header in nlist.h |
20109 do | 11775 do : |
20110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 11776 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" |
20111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 11777 if test "x$ac_cv_header_nlist_h" = x""yes; then : |
20112 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20113 $as_echo_n "checking for $ac_header... " >&6; } | |
20114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
20115 $as_echo_n "(cached) " >&6 | |
20116 fi | |
20117 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
20118 $as_echo "$as_val"'` | |
20119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20120 $as_echo "$ac_res" >&6; } | |
20121 else | |
20122 # Is the header compilable? | |
20123 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20124 $as_echo_n "checking $ac_header usability... " >&6; } | |
20125 cat >conftest.$ac_ext <<_ACEOF | |
20126 /* confdefs.h. */ | |
20127 _ACEOF | |
20128 cat confdefs.h >>conftest.$ac_ext | |
20129 cat >>conftest.$ac_ext <<_ACEOF | |
20130 /* end confdefs.h. */ | |
20131 $ac_includes_default | |
20132 #include <$ac_header> | |
20133 _ACEOF | |
20134 rm -f conftest.$ac_objext | |
20135 if { (ac_try="$ac_compile" | |
20136 case "(($ac_try" in | |
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20138 *) ac_try_echo=$ac_try;; | |
20139 esac | |
20140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20141 $as_echo "$ac_try_echo") >&5 | |
20142 (eval "$ac_compile") 2>conftest.er1 | |
20143 ac_status=$? | |
20144 grep -v '^ *+' conftest.er1 >conftest.err | |
20145 rm -f conftest.er1 | |
20146 cat conftest.err >&5 | |
20147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20148 (exit $ac_status); } && { | |
20149 test -z "$ac_c_werror_flag" || | |
20150 test ! -s conftest.err | |
20151 } && test -s conftest.$ac_objext; then | |
20152 ac_header_compiler=yes | |
20153 else | |
20154 $as_echo "$as_me: failed program was:" >&5 | |
20155 sed 's/^/| /' conftest.$ac_ext >&5 | |
20156 | |
20157 ac_header_compiler=no | |
20158 fi | |
20159 | |
20160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20161 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20162 $as_echo "$ac_header_compiler" >&6; } | |
20163 | |
20164 # Is the header present? | |
20165 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20166 $as_echo_n "checking $ac_header presence... " >&6; } | |
20167 cat >conftest.$ac_ext <<_ACEOF | |
20168 /* confdefs.h. */ | |
20169 _ACEOF | |
20170 cat confdefs.h >>conftest.$ac_ext | |
20171 cat >>conftest.$ac_ext <<_ACEOF | |
20172 /* end confdefs.h. */ | |
20173 #include <$ac_header> | |
20174 _ACEOF | |
20175 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
20176 case "(($ac_try" in | |
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20178 *) ac_try_echo=$ac_try;; | |
20179 esac | |
20180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20181 $as_echo "$ac_try_echo") >&5 | |
20182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
20183 ac_status=$? | |
20184 grep -v '^ *+' conftest.er1 >conftest.err | |
20185 rm -f conftest.er1 | |
20186 cat conftest.err >&5 | |
20187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20188 (exit $ac_status); } >/dev/null && { | |
20189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20190 test ! -s conftest.err | |
20191 }; then | |
20192 ac_header_preproc=yes | |
20193 else | |
20194 $as_echo "$as_me: failed program was:" >&5 | |
20195 sed 's/^/| /' conftest.$ac_ext >&5 | |
20196 | |
20197 ac_header_preproc=no | |
20198 fi | |
20199 | |
20200 rm -f conftest.err conftest.$ac_ext | |
20201 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20202 $as_echo "$ac_header_preproc" >&6; } | |
20203 | |
20204 # So? What about this header? | |
20205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20206 yes:no: ) | |
20207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20208 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
20210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20211 ac_header_preproc=yes | |
20212 ;; | |
20213 no:yes:* ) | |
20214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
20215 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
20216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
20217 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20219 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20221 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
20222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
20223 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
20224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
20225 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
20226 | |
20227 ;; | |
20228 esac | |
20229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20230 $as_echo_n "checking for $ac_header... " >&6; } | |
20231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
20232 $as_echo_n "(cached) " >&6 | |
20233 else | |
20234 eval "$as_ac_Header=\$ac_header_preproc" | |
20235 fi | |
20236 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
20237 $as_echo "$as_val"'` | |
20238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20239 $as_echo "$ac_res" >&6; } | |
20240 | |
20241 fi | |
20242 if test `eval 'as_val=${'$as_ac_Header'} | |
20243 $as_echo "$as_val"'` = yes; then | |
20244 cat >>confdefs.h <<_ACEOF | 11778 cat >>confdefs.h <<_ACEOF |
20245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 11779 #define HAVE_NLIST_H 1 |
20246 _ACEOF | 11780 _ACEOF |
20247 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 | 11781 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h> |
20248 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; } | 11782 " |
20249 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | 11783 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then : |
20250 $as_echo_n "(cached) " >&6 | |
20251 else | |
20252 cat >conftest.$ac_ext <<_ACEOF | |
20253 /* confdefs.h. */ | |
20254 _ACEOF | |
20255 cat confdefs.h >>conftest.$ac_ext | |
20256 cat >>conftest.$ac_ext <<_ACEOF | |
20257 /* end confdefs.h. */ | |
20258 #include <nlist.h> | |
20259 | |
20260 int | |
20261 main () | |
20262 { | |
20263 static struct nlist ac_aggr; | |
20264 if (ac_aggr.n_un.n_name) | |
20265 return 0; | |
20266 ; | |
20267 return 0; | |
20268 } | |
20269 _ACEOF | |
20270 rm -f conftest.$ac_objext | |
20271 if { (ac_try="$ac_compile" | |
20272 case "(($ac_try" in | |
20273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20274 *) ac_try_echo=$ac_try;; | |
20275 esac | |
20276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20277 $as_echo "$ac_try_echo") >&5 | |
20278 (eval "$ac_compile") 2>conftest.er1 | |
20279 ac_status=$? | |
20280 grep -v '^ *+' conftest.er1 >conftest.err | |
20281 rm -f conftest.er1 | |
20282 cat conftest.err >&5 | |
20283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20284 (exit $ac_status); } && { | |
20285 test -z "$ac_c_werror_flag" || | |
20286 test ! -s conftest.err | |
20287 } && test -s conftest.$ac_objext; then | |
20288 ac_cv_member_struct_nlist_n_un_n_name=yes | |
20289 else | |
20290 $as_echo "$as_me: failed program was:" >&5 | |
20291 sed 's/^/| /' conftest.$ac_ext >&5 | |
20292 | |
20293 cat >conftest.$ac_ext <<_ACEOF | |
20294 /* confdefs.h. */ | |
20295 _ACEOF | |
20296 cat confdefs.h >>conftest.$ac_ext | |
20297 cat >>conftest.$ac_ext <<_ACEOF | |
20298 /* end confdefs.h. */ | |
20299 #include <nlist.h> | |
20300 | |
20301 int | |
20302 main () | |
20303 { | |
20304 static struct nlist ac_aggr; | |
20305 if (sizeof ac_aggr.n_un.n_name) | |
20306 return 0; | |
20307 ; | |
20308 return 0; | |
20309 } | |
20310 _ACEOF | |
20311 rm -f conftest.$ac_objext | |
20312 if { (ac_try="$ac_compile" | |
20313 case "(($ac_try" in | |
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20315 *) ac_try_echo=$ac_try;; | |
20316 esac | |
20317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20318 $as_echo "$ac_try_echo") >&5 | |
20319 (eval "$ac_compile") 2>conftest.er1 | |
20320 ac_status=$? | |
20321 grep -v '^ *+' conftest.er1 >conftest.err | |
20322 rm -f conftest.er1 | |
20323 cat conftest.err >&5 | |
20324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20325 (exit $ac_status); } && { | |
20326 test -z "$ac_c_werror_flag" || | |
20327 test ! -s conftest.err | |
20328 } && test -s conftest.$ac_objext; then | |
20329 ac_cv_member_struct_nlist_n_un_n_name=yes | |
20330 else | |
20331 $as_echo "$as_me: failed program was:" >&5 | |
20332 sed 's/^/| /' conftest.$ac_ext >&5 | |
20333 | |
20334 ac_cv_member_struct_nlist_n_un_n_name=no | |
20335 fi | |
20336 | |
20337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20338 fi | |
20339 | |
20340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20341 fi | |
20342 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 | |
20343 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; } | |
20344 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
20345 | 11784 |
20346 cat >>confdefs.h <<_ACEOF | 11785 cat >>confdefs.h <<_ACEOF |
20347 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 | 11786 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
20348 _ACEOF | 11787 _ACEOF |
20349 | 11788 |
20350 | 11789 |
20351 cat >>confdefs.h <<\_ACEOF | 11790 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h |
20352 #define NLIST_NAME_UNION 1 | |
20353 _ACEOF | |
20354 | 11791 |
20355 fi | 11792 fi |
20356 | 11793 |
20357 | 11794 |
20358 fi | 11795 fi |
20362 fi | 11799 fi |
20363 done | 11800 done |
20364 | 11801 |
20365 | 11802 |
20366 # Some definitions of getloadavg require that the program be installed setgid. | 11803 # Some definitions of getloadavg require that the program be installed setgid. |
20367 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 | 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5 |
20368 $as_echo_n "checking whether getloadavg requires setgid... " >&6; } | 11805 $as_echo_n "checking whether getloadavg requires setgid... " >&6; } |
20369 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | 11806 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then : |
20370 $as_echo_n "(cached) " >&6 | 11807 $as_echo_n "(cached) " >&6 |
20371 else | 11808 else |
20372 cat >conftest.$ac_ext <<_ACEOF | 11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20373 /* confdefs.h. */ | |
20374 _ACEOF | |
20375 cat confdefs.h >>conftest.$ac_ext | |
20376 cat >>conftest.$ac_ext <<_ACEOF | |
20377 /* end confdefs.h. */ | 11810 /* end confdefs.h. */ |
20378 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" | 11811 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" |
20379 #ifdef LDAV_PRIVILEGED | 11812 #ifdef LDAV_PRIVILEGED |
20380 Yowza Am I SETGID yet | 11813 Yowza Am I SETGID yet |
20381 #endif | 11814 #endif |
20382 _ACEOF | 11815 _ACEOF |
20383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 11816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
20384 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then | 11817 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then : |
20385 ac_cv_func_getloadavg_setgid=yes | 11818 ac_cv_func_getloadavg_setgid=yes |
20386 else | 11819 else |
20387 ac_cv_func_getloadavg_setgid=no | 11820 ac_cv_func_getloadavg_setgid=no |
20388 fi | 11821 fi |
20389 rm -f conftest* | 11822 rm -f conftest* |
20390 | 11823 |
20391 fi | 11824 fi |
20392 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 | 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5 |
20393 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; } | 11826 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; } |
20394 if test $ac_cv_func_getloadavg_setgid = yes; then | 11827 if test $ac_cv_func_getloadavg_setgid = yes; then |
20395 NEED_SETGID=true | 11828 NEED_SETGID=true |
20396 | 11829 |
20397 cat >>confdefs.h <<\_ACEOF | 11830 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h |
20398 #define GETLOADAVG_PRIVILEGED 1 | |
20399 _ACEOF | |
20400 | 11831 |
20401 else | 11832 else |
20402 NEED_SETGID=false | 11833 NEED_SETGID=false |
20403 fi | 11834 fi |
20404 | 11835 |
20405 if test $ac_cv_func_getloadavg_setgid = yes; then | 11836 if test $ac_cv_func_getloadavg_setgid = yes; then |
20406 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 | 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5 |
20407 $as_echo_n "checking group of /dev/kmem... " >&6; } | 11838 $as_echo_n "checking group of /dev/kmem... " >&6; } |
20408 if test "${ac_cv_group_kmem+set}" = set; then | 11839 if test "${ac_cv_group_kmem+set}" = set; then : |
20409 $as_echo_n "(cached) " >&6 | 11840 $as_echo_n "(cached) " >&6 |
20410 else | 11841 else |
20411 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | 11842 # On Solaris, /dev/kmem is a symlink. Get info on the real file. |
20412 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | 11843 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
20413 # If we got an error (system does not support symlinks), try without -L. | 11844 # If we got an error (system does not support symlinks), try without -L. |
20416 | sed -ne 's/[ ][ ]*/ /g; | 11847 | sed -ne 's/[ ][ ]*/ /g; |
20417 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | 11848 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; |
20418 / /s/.* //;p;'` | 11849 / /s/.* //;p;'` |
20419 | 11850 |
20420 fi | 11851 fi |
20421 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 | 11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5 |
20422 $as_echo "$ac_cv_group_kmem" >&6; } | 11853 $as_echo "$ac_cv_group_kmem" >&6; } |
20423 KMEM_GROUP=$ac_cv_group_kmem | 11854 KMEM_GROUP=$ac_cv_group_kmem |
20424 fi | 11855 fi |
20425 if test "x$ac_save_LIBS" = x; then | 11856 if test "x$ac_save_LIBS" = x; then |
20426 GETLOADAVG_LIBS=$LIBS | 11857 GETLOADAVG_LIBS=$LIBS |
20429 fi | 11860 fi |
20430 LIBS=$ac_save_LIBS | 11861 LIBS=$ac_save_LIBS |
20431 | 11862 |
20432 | 11863 |
20433 | 11864 |
20434 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | 11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
20435 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } | 11866 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
20436 if test "${ac_cv_sys_largefile_source+set}" = set; then | 11867 if test "${ac_cv_sys_largefile_source+set}" = set; then : |
20437 $as_echo_n "(cached) " >&6 | 11868 $as_echo_n "(cached) " >&6 |
20438 else | 11869 else |
20439 while :; do | 11870 while :; do |
20440 cat >conftest.$ac_ext <<_ACEOF | 11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20441 /* confdefs.h. */ | |
20442 _ACEOF | |
20443 cat confdefs.h >>conftest.$ac_ext | |
20444 cat >>conftest.$ac_ext <<_ACEOF | |
20445 /* end confdefs.h. */ | 11872 /* end confdefs.h. */ |
20446 #include <sys/types.h> /* for off_t */ | 11873 #include <sys/types.h> /* for off_t */ |
20447 #include <stdio.h> | 11874 #include <stdio.h> |
20448 int | 11875 int |
20449 main () | 11876 main () |
20452 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | 11879 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
20453 ; | 11880 ; |
20454 return 0; | 11881 return 0; |
20455 } | 11882 } |
20456 _ACEOF | 11883 _ACEOF |
20457 rm -f conftest.$ac_objext conftest$ac_exeext | 11884 if ac_fn_c_try_link "$LINENO"; then : |
20458 if { (ac_try="$ac_link" | |
20459 case "(($ac_try" in | |
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20461 *) ac_try_echo=$ac_try;; | |
20462 esac | |
20463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20464 $as_echo "$ac_try_echo") >&5 | |
20465 (eval "$ac_link") 2>conftest.er1 | |
20466 ac_status=$? | |
20467 grep -v '^ *+' conftest.er1 >conftest.err | |
20468 rm -f conftest.er1 | |
20469 cat conftest.err >&5 | |
20470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20471 (exit $ac_status); } && { | |
20472 test -z "$ac_c_werror_flag" || | |
20473 test ! -s conftest.err | |
20474 } && test -s conftest$ac_exeext && { | |
20475 test "$cross_compiling" = yes || | |
20476 $as_test_x conftest$ac_exeext | |
20477 }; then | |
20478 ac_cv_sys_largefile_source=no; break | 11885 ac_cv_sys_largefile_source=no; break |
20479 else | 11886 fi |
20480 $as_echo "$as_me: failed program was:" >&5 | 11887 rm -f core conftest.err conftest.$ac_objext \ |
20481 sed 's/^/| /' conftest.$ac_ext >&5 | 11888 conftest$ac_exeext conftest.$ac_ext |
20482 | 11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20483 | |
20484 fi | |
20485 | |
20486 rm -rf conftest.dSYM | |
20487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20488 conftest$ac_exeext conftest.$ac_ext | |
20489 cat >conftest.$ac_ext <<_ACEOF | |
20490 /* confdefs.h. */ | |
20491 _ACEOF | |
20492 cat confdefs.h >>conftest.$ac_ext | |
20493 cat >>conftest.$ac_ext <<_ACEOF | |
20494 /* end confdefs.h. */ | 11890 /* end confdefs.h. */ |
20495 #define _LARGEFILE_SOURCE 1 | 11891 #define _LARGEFILE_SOURCE 1 |
20496 #include <sys/types.h> /* for off_t */ | 11892 #include <sys/types.h> /* for off_t */ |
20497 #include <stdio.h> | 11893 #include <stdio.h> |
20498 int | 11894 int |
20502 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | 11898 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
20503 ; | 11899 ; |
20504 return 0; | 11900 return 0; |
20505 } | 11901 } |
20506 _ACEOF | 11902 _ACEOF |
20507 rm -f conftest.$ac_objext conftest$ac_exeext | 11903 if ac_fn_c_try_link "$LINENO"; then : |
20508 if { (ac_try="$ac_link" | |
20509 case "(($ac_try" in | |
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20511 *) ac_try_echo=$ac_try;; | |
20512 esac | |
20513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20514 $as_echo "$ac_try_echo") >&5 | |
20515 (eval "$ac_link") 2>conftest.er1 | |
20516 ac_status=$? | |
20517 grep -v '^ *+' conftest.er1 >conftest.err | |
20518 rm -f conftest.er1 | |
20519 cat conftest.err >&5 | |
20520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20521 (exit $ac_status); } && { | |
20522 test -z "$ac_c_werror_flag" || | |
20523 test ! -s conftest.err | |
20524 } && test -s conftest$ac_exeext && { | |
20525 test "$cross_compiling" = yes || | |
20526 $as_test_x conftest$ac_exeext | |
20527 }; then | |
20528 ac_cv_sys_largefile_source=1; break | 11904 ac_cv_sys_largefile_source=1; break |
20529 else | 11905 fi |
20530 $as_echo "$as_me: failed program was:" >&5 | 11906 rm -f core conftest.err conftest.$ac_objext \ |
20531 sed 's/^/| /' conftest.$ac_ext >&5 | 11907 conftest$ac_exeext conftest.$ac_ext |
20532 | |
20533 | |
20534 fi | |
20535 | |
20536 rm -rf conftest.dSYM | |
20537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20538 conftest$ac_exeext conftest.$ac_ext | |
20539 ac_cv_sys_largefile_source=unknown | 11908 ac_cv_sys_largefile_source=unknown |
20540 break | 11909 break |
20541 done | 11910 done |
20542 fi | 11911 fi |
20543 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | 11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 |
20544 $as_echo "$ac_cv_sys_largefile_source" >&6; } | 11913 $as_echo "$ac_cv_sys_largefile_source" >&6; } |
20545 case $ac_cv_sys_largefile_source in #( | 11914 case $ac_cv_sys_largefile_source in #( |
20546 no | unknown) ;; | 11915 no | unknown) ;; |
20547 *) | 11916 *) |
20548 cat >>confdefs.h <<_ACEOF | 11917 cat >>confdefs.h <<_ACEOF |
20555 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | 11924 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
20556 # in glibc 2.1.3, but that breaks too many other things. | 11925 # in glibc 2.1.3, but that breaks too many other things. |
20557 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | 11926 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
20558 if test $ac_cv_sys_largefile_source != unknown; then | 11927 if test $ac_cv_sys_largefile_source != unknown; then |
20559 | 11928 |
20560 cat >>confdefs.h <<\_ACEOF | 11929 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h |
20561 #define HAVE_FSEEKO 1 | |
20562 _ACEOF | |
20563 | 11930 |
20564 fi | 11931 fi |
20565 | 11932 |
20566 | 11933 |
20567 # Configure getopt. | 11934 # Configure getopt. |
20585 | 11952 |
20586 | 11953 |
20587 | 11954 |
20588 | 11955 |
20589 GETOPT_H= | 11956 GETOPT_H= |
20590 | 11957 for ac_header in getopt.h |
20591 for ac_header in getopt.h | 11958 do : |
20592 do | 11959 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" |
20593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 11960 if test "x$ac_cv_header_getopt_h" = x""yes; then : |
20594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 11961 cat >>confdefs.h <<_ACEOF |
20595 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | 11962 #define HAVE_GETOPT_H 1 |
20596 $as_echo_n "checking for $ac_header... " >&6; } | 11963 _ACEOF |
20597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 11964 |
11965 else | |
11966 GETOPT_H=getopt.h | |
11967 fi | |
11968 | |
11969 done | |
11970 | |
11971 if test -z "$GETOPT_H"; then | |
11972 for ac_func in getopt_long_only | |
11973 do : | |
11974 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" | |
11975 if test "x$ac_cv_func_getopt_long_only" = x""yes; then : | |
11976 cat >>confdefs.h <<_ACEOF | |
11977 #define HAVE_GETOPT_LONG_ONLY 1 | |
11978 _ACEOF | |
11979 | |
11980 else | |
11981 GETOPT_H=getopt.h | |
11982 fi | |
11983 done | |
11984 | |
11985 fi | |
11986 | |
11987 if test -z "$GETOPT_H"; then | |
11988 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h> | |
11989 " | |
11990 if test "x$ac_cv_have_decl_optreset" = x""yes; then : | |
11991 GETOPT_H=getopt.h | |
11992 fi | |
11993 | |
11994 fi | |
11995 | |
11996 if test -z "$GETOPT_H"; then | |
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 | |
11998 $as_echo_n "checking for working GNU getopt function... " >&6; } | |
11999 if test "${gl_cv_func_gnu_getopt+set}" = set; then : | |
20598 $as_echo_n "(cached) " >&6 | 12000 $as_echo_n "(cached) " >&6 |
20599 fi | 12001 else |
20600 ac_res=`eval 'as_val=${'$as_ac_Header'} | 12002 if test "$cross_compiling" = yes; then : |
20601 $as_echo "$as_val"'` | 12003 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h> |
20602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | 12004 " |
20603 $as_echo "$ac_res" >&6; } | 12005 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then : |
20604 else | |
20605 # Is the header compilable? | |
20606 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20607 $as_echo_n "checking $ac_header usability... " >&6; } | |
20608 cat >conftest.$ac_ext <<_ACEOF | |
20609 /* confdefs.h. */ | |
20610 _ACEOF | |
20611 cat confdefs.h >>conftest.$ac_ext | |
20612 cat >>conftest.$ac_ext <<_ACEOF | |
20613 /* end confdefs.h. */ | |
20614 $ac_includes_default | |
20615 #include <$ac_header> | |
20616 _ACEOF | |
20617 rm -f conftest.$ac_objext | |
20618 if { (ac_try="$ac_compile" | |
20619 case "(($ac_try" in | |
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20621 *) ac_try_echo=$ac_try;; | |
20622 esac | |
20623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20624 $as_echo "$ac_try_echo") >&5 | |
20625 (eval "$ac_compile") 2>conftest.er1 | |
20626 ac_status=$? | |
20627 grep -v '^ *+' conftest.er1 >conftest.err | |
20628 rm -f conftest.er1 | |
20629 cat conftest.err >&5 | |
20630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20631 (exit $ac_status); } && { | |
20632 test -z "$ac_c_werror_flag" || | |
20633 test ! -s conftest.err | |
20634 } && test -s conftest.$ac_objext; then | |
20635 ac_header_compiler=yes | |
20636 else | |
20637 $as_echo "$as_me: failed program was:" >&5 | |
20638 sed 's/^/| /' conftest.$ac_ext >&5 | |
20639 | |
20640 ac_header_compiler=no | |
20641 fi | |
20642 | |
20643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20644 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20645 $as_echo "$ac_header_compiler" >&6; } | |
20646 | |
20647 # Is the header present? | |
20648 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20649 $as_echo_n "checking $ac_header presence... " >&6; } | |
20650 cat >conftest.$ac_ext <<_ACEOF | |
20651 /* confdefs.h. */ | |
20652 _ACEOF | |
20653 cat confdefs.h >>conftest.$ac_ext | |
20654 cat >>conftest.$ac_ext <<_ACEOF | |
20655 /* end confdefs.h. */ | |
20656 #include <$ac_header> | |
20657 _ACEOF | |
20658 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
20659 case "(($ac_try" in | |
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20661 *) ac_try_echo=$ac_try;; | |
20662 esac | |
20663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20664 $as_echo "$ac_try_echo") >&5 | |
20665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
20666 ac_status=$? | |
20667 grep -v '^ *+' conftest.er1 >conftest.err | |
20668 rm -f conftest.er1 | |
20669 cat conftest.err >&5 | |
20670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20671 (exit $ac_status); } >/dev/null && { | |
20672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20673 test ! -s conftest.err | |
20674 }; then | |
20675 ac_header_preproc=yes | |
20676 else | |
20677 $as_echo "$as_me: failed program was:" >&5 | |
20678 sed 's/^/| /' conftest.$ac_ext >&5 | |
20679 | |
20680 ac_header_preproc=no | |
20681 fi | |
20682 | |
20683 rm -f conftest.err conftest.$ac_ext | |
20684 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20685 $as_echo "$ac_header_preproc" >&6; } | |
20686 | |
20687 # So? What about this header? | |
20688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20689 yes:no: ) | |
20690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20691 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
20693 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20694 ac_header_preproc=yes | |
20695 ;; | |
20696 no:yes:* ) | |
20697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
20698 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
20699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
20700 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20702 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20704 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
20705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
20706 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
20707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
20708 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
20709 | |
20710 ;; | |
20711 esac | |
20712 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20713 $as_echo_n "checking for $ac_header... " >&6; } | |
20714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
20715 $as_echo_n "(cached) " >&6 | |
20716 else | |
20717 eval "$as_ac_Header=\$ac_header_preproc" | |
20718 fi | |
20719 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
20720 $as_echo "$as_val"'` | |
20721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20722 $as_echo "$ac_res" >&6; } | |
20723 | |
20724 fi | |
20725 if test `eval 'as_val=${'$as_ac_Header'} | |
20726 $as_echo "$as_val"'` = yes; then | |
20727 cat >>confdefs.h <<_ACEOF | |
20728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20729 _ACEOF | |
20730 | |
20731 else | |
20732 GETOPT_H=getopt.h | |
20733 fi | |
20734 | |
20735 done | |
20736 | |
20737 if test -z "$GETOPT_H"; then | |
20738 | |
20739 for ac_func in getopt_long_only | |
20740 do | |
20741 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20742 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20743 $as_echo_n "checking for $ac_func... " >&6; } | |
20744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
20745 $as_echo_n "(cached) " >&6 | |
20746 else | |
20747 cat >conftest.$ac_ext <<_ACEOF | |
20748 /* confdefs.h. */ | |
20749 _ACEOF | |
20750 cat confdefs.h >>conftest.$ac_ext | |
20751 cat >>conftest.$ac_ext <<_ACEOF | |
20752 /* end confdefs.h. */ | |
20753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
20754 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20755 #define $ac_func innocuous_$ac_func | |
20756 | |
20757 /* System header to define __stub macros and hopefully few prototypes, | |
20758 which can conflict with char $ac_func (); below. | |
20759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20760 <limits.h> exists even on freestanding compilers. */ | |
20761 | |
20762 #ifdef __STDC__ | |
20763 # include <limits.h> | |
20764 #else | |
20765 # include <assert.h> | |
20766 #endif | |
20767 | |
20768 #undef $ac_func | |
20769 | |
20770 /* Override any GCC internal prototype to avoid an error. | |
20771 Use char because int might match the return type of a GCC | |
20772 builtin and then its argument prototype would still apply. */ | |
20773 #ifdef __cplusplus | |
20774 extern "C" | |
20775 #endif | |
20776 char $ac_func (); | |
20777 /* The GNU C library defines this for functions which it implements | |
20778 to always fail with ENOSYS. Some functions are actually named | |
20779 something starting with __ and the normal name is an alias. */ | |
20780 #if defined __stub_$ac_func || defined __stub___$ac_func | |
20781 choke me | |
20782 #endif | |
20783 | |
20784 int | |
20785 main () | |
20786 { | |
20787 return $ac_func (); | |
20788 ; | |
20789 return 0; | |
20790 } | |
20791 _ACEOF | |
20792 rm -f conftest.$ac_objext conftest$ac_exeext | |
20793 if { (ac_try="$ac_link" | |
20794 case "(($ac_try" in | |
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20796 *) ac_try_echo=$ac_try;; | |
20797 esac | |
20798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20799 $as_echo "$ac_try_echo") >&5 | |
20800 (eval "$ac_link") 2>conftest.er1 | |
20801 ac_status=$? | |
20802 grep -v '^ *+' conftest.er1 >conftest.err | |
20803 rm -f conftest.er1 | |
20804 cat conftest.err >&5 | |
20805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20806 (exit $ac_status); } && { | |
20807 test -z "$ac_c_werror_flag" || | |
20808 test ! -s conftest.err | |
20809 } && test -s conftest$ac_exeext && { | |
20810 test "$cross_compiling" = yes || | |
20811 $as_test_x conftest$ac_exeext | |
20812 }; then | |
20813 eval "$as_ac_var=yes" | |
20814 else | |
20815 $as_echo "$as_me: failed program was:" >&5 | |
20816 sed 's/^/| /' conftest.$ac_ext >&5 | |
20817 | |
20818 eval "$as_ac_var=no" | |
20819 fi | |
20820 | |
20821 rm -rf conftest.dSYM | |
20822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20823 conftest$ac_exeext conftest.$ac_ext | |
20824 fi | |
20825 ac_res=`eval 'as_val=${'$as_ac_var'} | |
20826 $as_echo "$as_val"'` | |
20827 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20828 $as_echo "$ac_res" >&6; } | |
20829 if test `eval 'as_val=${'$as_ac_var'} | |
20830 $as_echo "$as_val"'` = yes; then | |
20831 cat >>confdefs.h <<_ACEOF | |
20832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20833 _ACEOF | |
20834 | |
20835 else | |
20836 GETOPT_H=getopt.h | |
20837 fi | |
20838 done | |
20839 | |
20840 fi | |
20841 | |
20842 if test -z "$GETOPT_H"; then | |
20843 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5 | |
20844 $as_echo_n "checking whether optreset is declared... " >&6; } | |
20845 if test "${ac_cv_have_decl_optreset+set}" = set; then | |
20846 $as_echo_n "(cached) " >&6 | |
20847 else | |
20848 cat >conftest.$ac_ext <<_ACEOF | |
20849 /* confdefs.h. */ | |
20850 _ACEOF | |
20851 cat confdefs.h >>conftest.$ac_ext | |
20852 cat >>conftest.$ac_ext <<_ACEOF | |
20853 /* end confdefs.h. */ | |
20854 #include <getopt.h> | |
20855 | |
20856 int | |
20857 main () | |
20858 { | |
20859 #ifndef optreset | |
20860 (void) optreset; | |
20861 #endif | |
20862 | |
20863 ; | |
20864 return 0; | |
20865 } | |
20866 _ACEOF | |
20867 rm -f conftest.$ac_objext | |
20868 if { (ac_try="$ac_compile" | |
20869 case "(($ac_try" in | |
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20871 *) ac_try_echo=$ac_try;; | |
20872 esac | |
20873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20874 $as_echo "$ac_try_echo") >&5 | |
20875 (eval "$ac_compile") 2>conftest.er1 | |
20876 ac_status=$? | |
20877 grep -v '^ *+' conftest.er1 >conftest.err | |
20878 rm -f conftest.er1 | |
20879 cat conftest.err >&5 | |
20880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20881 (exit $ac_status); } && { | |
20882 test -z "$ac_c_werror_flag" || | |
20883 test ! -s conftest.err | |
20884 } && test -s conftest.$ac_objext; then | |
20885 ac_cv_have_decl_optreset=yes | |
20886 else | |
20887 $as_echo "$as_me: failed program was:" >&5 | |
20888 sed 's/^/| /' conftest.$ac_ext >&5 | |
20889 | |
20890 ac_cv_have_decl_optreset=no | |
20891 fi | |
20892 | |
20893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20894 fi | |
20895 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 | |
20896 $as_echo "$ac_cv_have_decl_optreset" >&6; } | |
20897 if test $ac_cv_have_decl_optreset = yes; then | |
20898 GETOPT_H=getopt.h | |
20899 fi | |
20900 | |
20901 fi | |
20902 | |
20903 if test -z "$GETOPT_H"; then | |
20904 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 | |
20905 $as_echo_n "checking for working GNU getopt function... " >&6; } | |
20906 if test "${gl_cv_func_gnu_getopt+set}" = set; then | |
20907 $as_echo_n "(cached) " >&6 | |
20908 else | |
20909 if test "$cross_compiling" = yes; then | |
20910 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 | |
20911 $as_echo_n "checking whether getopt_clip is declared... " >&6; } | |
20912 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then | |
20913 $as_echo_n "(cached) " >&6 | |
20914 else | |
20915 cat >conftest.$ac_ext <<_ACEOF | |
20916 /* confdefs.h. */ | |
20917 _ACEOF | |
20918 cat confdefs.h >>conftest.$ac_ext | |
20919 cat >>conftest.$ac_ext <<_ACEOF | |
20920 /* end confdefs.h. */ | |
20921 #include <getopt.h> | |
20922 | |
20923 int | |
20924 main () | |
20925 { | |
20926 #ifndef getopt_clip | |
20927 (void) getopt_clip; | |
20928 #endif | |
20929 | |
20930 ; | |
20931 return 0; | |
20932 } | |
20933 _ACEOF | |
20934 rm -f conftest.$ac_objext | |
20935 if { (ac_try="$ac_compile" | |
20936 case "(($ac_try" in | |
20937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20938 *) ac_try_echo=$ac_try;; | |
20939 esac | |
20940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20941 $as_echo "$ac_try_echo") >&5 | |
20942 (eval "$ac_compile") 2>conftest.er1 | |
20943 ac_status=$? | |
20944 grep -v '^ *+' conftest.er1 >conftest.err | |
20945 rm -f conftest.er1 | |
20946 cat conftest.err >&5 | |
20947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20948 (exit $ac_status); } && { | |
20949 test -z "$ac_c_werror_flag" || | |
20950 test ! -s conftest.err | |
20951 } && test -s conftest.$ac_objext; then | |
20952 ac_cv_have_decl_getopt_clip=yes | |
20953 else | |
20954 $as_echo "$as_me: failed program was:" >&5 | |
20955 sed 's/^/| /' conftest.$ac_ext >&5 | |
20956 | |
20957 ac_cv_have_decl_getopt_clip=no | |
20958 fi | |
20959 | |
20960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20961 fi | |
20962 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 | |
20963 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; } | |
20964 if test $ac_cv_have_decl_getopt_clip = yes; then | |
20965 gl_cv_func_gnu_getopt=no | 12006 gl_cv_func_gnu_getopt=no |
20966 else | 12007 else |
20967 gl_cv_func_gnu_getopt=yes | 12008 gl_cv_func_gnu_getopt=yes |
20968 fi | 12009 fi |
20969 | 12010 |
20970 else | 12011 else |
20971 cat >conftest.$ac_ext <<_ACEOF | 12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20972 /* confdefs.h. */ | |
20973 _ACEOF | |
20974 cat confdefs.h >>conftest.$ac_ext | |
20975 cat >>conftest.$ac_ext <<_ACEOF | |
20976 /* end confdefs.h. */ | 12013 /* end confdefs.h. */ |
20977 #include <getopt.h> | 12014 #include <getopt.h> |
20978 int | 12015 int |
20979 main () | 12016 main () |
20980 { | 12017 { |
20987 | 12024 |
20988 ; | 12025 ; |
20989 return 0; | 12026 return 0; |
20990 } | 12027 } |
20991 _ACEOF | 12028 _ACEOF |
20992 rm -f conftest$ac_exeext | 12029 if ac_fn_c_try_run "$LINENO"; then : |
20993 if { (ac_try="$ac_link" | |
20994 case "(($ac_try" in | |
20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20996 *) ac_try_echo=$ac_try;; | |
20997 esac | |
20998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20999 $as_echo "$ac_try_echo") >&5 | |
21000 (eval "$ac_link") 2>&5 | |
21001 ac_status=$? | |
21002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21004 { (case "(($ac_try" in | |
21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21006 *) ac_try_echo=$ac_try;; | |
21007 esac | |
21008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21009 $as_echo "$ac_try_echo") >&5 | |
21010 (eval "$ac_try") 2>&5 | |
21011 ac_status=$? | |
21012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21013 (exit $ac_status); }; }; then | |
21014 gl_cv_func_gnu_getopt=yes | 12030 gl_cv_func_gnu_getopt=yes |
21015 else | 12031 else |
21016 $as_echo "$as_me: program exited with status $ac_status" >&5 | 12032 gl_cv_func_gnu_getopt=no |
21017 $as_echo "$as_me: failed program was:" >&5 | 12033 fi |
21018 sed 's/^/| /' conftest.$ac_ext >&5 | 12034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
21019 | 12035 conftest.$ac_objext conftest.beam conftest.$ac_ext |
21020 ( exit $ac_status ) | 12036 fi |
21021 gl_cv_func_gnu_getopt=no | 12037 |
21022 fi | 12038 fi |
21023 rm -rf conftest.dSYM | 12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5 |
21024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21025 fi | |
21026 | |
21027 | |
21028 fi | |
21029 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 | |
21030 $as_echo "$gl_cv_func_gnu_getopt" >&6; } | 12040 $as_echo "$gl_cv_func_gnu_getopt" >&6; } |
21031 if test "$gl_cv_func_gnu_getopt" = "no"; then | 12041 if test "$gl_cv_func_gnu_getopt" = "no"; then |
21032 GETOPT_H=getopt.h | 12042 GETOPT_H=getopt.h |
21033 fi | 12043 fi |
21034 fi | 12044 fi |
21035 | 12045 |
21036 | 12046 |
21037 | 12047 |
21038 if test -n "$GETOPT_H"; then | 12048 if test -n "$GETOPT_H"; then : |
21039 | 12049 |
21040 | 12050 |
21041 GETOPT_H=getopt.h | 12051 GETOPT_H=getopt.h |
21042 | 12052 |
21043 cat >>confdefs.h <<\_ACEOF | 12053 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h |
21044 #define __GETOPT_PREFIX rpl_ | |
21045 _ACEOF | |
21046 | 12054 |
21047 | 12055 |
21048 | 12056 |
21049 : | 12057 : |
21050 GETOPTOBJS='getopt.o getopt1.o' | 12058 GETOPTOBJS='getopt.o getopt1.o' |
21051 | 12059 |
21052 fi | 12060 fi |
21053 | 12061 |
21054 | 12062 |
21055 | 12063 |
21056 | 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 |
21057 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | |
21058 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | 12065 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } |
21059 if test "${ac_cv_func_getpgrp_void+set}" = set; then | 12066 if test "${ac_cv_func_getpgrp_void+set}" = set; then : |
21060 $as_echo_n "(cached) " >&6 | 12067 $as_echo_n "(cached) " >&6 |
21061 else | 12068 else |
21062 # Use it with a single arg. | 12069 # Use it with a single arg. |
21063 cat >conftest.$ac_ext <<_ACEOF | 12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21064 /* confdefs.h. */ | |
21065 _ACEOF | |
21066 cat confdefs.h >>conftest.$ac_ext | |
21067 cat >>conftest.$ac_ext <<_ACEOF | |
21068 /* end confdefs.h. */ | 12071 /* end confdefs.h. */ |
21069 $ac_includes_default | 12072 $ac_includes_default |
21070 int | 12073 int |
21071 main () | 12074 main () |
21072 { | 12075 { |
21073 getpgrp (0); | 12076 getpgrp (0); |
21074 ; | 12077 ; |
21075 return 0; | 12078 return 0; |
21076 } | 12079 } |
21077 _ACEOF | 12080 _ACEOF |
21078 rm -f conftest.$ac_objext | 12081 if ac_fn_c_try_compile "$LINENO"; then : |
21079 if { (ac_try="$ac_compile" | |
21080 case "(($ac_try" in | |
21081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21082 *) ac_try_echo=$ac_try;; | |
21083 esac | |
21084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21085 $as_echo "$ac_try_echo") >&5 | |
21086 (eval "$ac_compile") 2>conftest.er1 | |
21087 ac_status=$? | |
21088 grep -v '^ *+' conftest.er1 >conftest.err | |
21089 rm -f conftest.er1 | |
21090 cat conftest.err >&5 | |
21091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21092 (exit $ac_status); } && { | |
21093 test -z "$ac_c_werror_flag" || | |
21094 test ! -s conftest.err | |
21095 } && test -s conftest.$ac_objext; then | |
21096 ac_cv_func_getpgrp_void=no | 12082 ac_cv_func_getpgrp_void=no |
21097 else | 12083 else |
21098 $as_echo "$as_me: failed program was:" >&5 | 12084 ac_cv_func_getpgrp_void=yes |
21099 sed 's/^/| /' conftest.$ac_ext >&5 | 12085 fi |
21100 | |
21101 ac_cv_func_getpgrp_void=yes | |
21102 fi | |
21103 | |
21104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21105 | 12087 |
21106 fi | 12088 fi |
21107 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | 12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 |
21108 $as_echo "$ac_cv_func_getpgrp_void" >&6; } | 12090 $as_echo "$ac_cv_func_getpgrp_void" >&6; } |
21109 if test $ac_cv_func_getpgrp_void = yes; then | 12091 if test $ac_cv_func_getpgrp_void = yes; then |
21110 | 12092 |
21111 cat >>confdefs.h <<\_ACEOF | 12093 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h |
21112 #define GETPGRP_VOID 1 | 12094 |
21113 _ACEOF | 12095 fi |
21114 | |
21115 fi | |
21116 | |
21117 | 12096 |
21118 | 12097 |
21119 for ac_func in strftime | 12098 for ac_func in strftime |
21120 do | 12099 do : |
21121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 12100 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" |
21122 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 12101 if test "x$ac_cv_func_strftime" = x""yes; then : |
21123 $as_echo_n "checking for $ac_func... " >&6; } | |
21124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
21125 $as_echo_n "(cached) " >&6 | |
21126 else | |
21127 cat >conftest.$ac_ext <<_ACEOF | |
21128 /* confdefs.h. */ | |
21129 _ACEOF | |
21130 cat confdefs.h >>conftest.$ac_ext | |
21131 cat >>conftest.$ac_ext <<_ACEOF | |
21132 /* end confdefs.h. */ | |
21133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
21134 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21135 #define $ac_func innocuous_$ac_func | |
21136 | |
21137 /* System header to define __stub macros and hopefully few prototypes, | |
21138 which can conflict with char $ac_func (); below. | |
21139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21140 <limits.h> exists even on freestanding compilers. */ | |
21141 | |
21142 #ifdef __STDC__ | |
21143 # include <limits.h> | |
21144 #else | |
21145 # include <assert.h> | |
21146 #endif | |
21147 | |
21148 #undef $ac_func | |
21149 | |
21150 /* Override any GCC internal prototype to avoid an error. | |
21151 Use char because int might match the return type of a GCC | |
21152 builtin and then its argument prototype would still apply. */ | |
21153 #ifdef __cplusplus | |
21154 extern "C" | |
21155 #endif | |
21156 char $ac_func (); | |
21157 /* The GNU C library defines this for functions which it implements | |
21158 to always fail with ENOSYS. Some functions are actually named | |
21159 something starting with __ and the normal name is an alias. */ | |
21160 #if defined __stub_$ac_func || defined __stub___$ac_func | |
21161 choke me | |
21162 #endif | |
21163 | |
21164 int | |
21165 main () | |
21166 { | |
21167 return $ac_func (); | |
21168 ; | |
21169 return 0; | |
21170 } | |
21171 _ACEOF | |
21172 rm -f conftest.$ac_objext conftest$ac_exeext | |
21173 if { (ac_try="$ac_link" | |
21174 case "(($ac_try" in | |
21175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21176 *) ac_try_echo=$ac_try;; | |
21177 esac | |
21178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21179 $as_echo "$ac_try_echo") >&5 | |
21180 (eval "$ac_link") 2>conftest.er1 | |
21181 ac_status=$? | |
21182 grep -v '^ *+' conftest.er1 >conftest.err | |
21183 rm -f conftest.er1 | |
21184 cat conftest.err >&5 | |
21185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21186 (exit $ac_status); } && { | |
21187 test -z "$ac_c_werror_flag" || | |
21188 test ! -s conftest.err | |
21189 } && test -s conftest$ac_exeext && { | |
21190 test "$cross_compiling" = yes || | |
21191 $as_test_x conftest$ac_exeext | |
21192 }; then | |
21193 eval "$as_ac_var=yes" | |
21194 else | |
21195 $as_echo "$as_me: failed program was:" >&5 | |
21196 sed 's/^/| /' conftest.$ac_ext >&5 | |
21197 | |
21198 eval "$as_ac_var=no" | |
21199 fi | |
21200 | |
21201 rm -rf conftest.dSYM | |
21202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21203 conftest$ac_exeext conftest.$ac_ext | |
21204 fi | |
21205 ac_res=`eval 'as_val=${'$as_ac_var'} | |
21206 $as_echo "$as_val"'` | |
21207 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21208 $as_echo "$ac_res" >&6; } | |
21209 if test `eval 'as_val=${'$as_ac_var'} | |
21210 $as_echo "$as_val"'` = yes; then | |
21211 cat >>confdefs.h <<_ACEOF | 12102 cat >>confdefs.h <<_ACEOF |
21212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 12103 #define HAVE_STRFTIME 1 |
21213 _ACEOF | 12104 _ACEOF |
21214 | 12105 |
21215 else | 12106 else |
21216 # strftime is in -lintl on SCO UNIX. | 12107 # strftime is in -lintl on SCO UNIX. |
21217 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 |
21218 $as_echo_n "checking for strftime in -lintl... " >&6; } | 12109 $as_echo_n "checking for strftime in -lintl... " >&6; } |
21219 if test "${ac_cv_lib_intl_strftime+set}" = set; then | 12110 if test "${ac_cv_lib_intl_strftime+set}" = set; then : |
21220 $as_echo_n "(cached) " >&6 | 12111 $as_echo_n "(cached) " >&6 |
21221 else | 12112 else |
21222 ac_check_lib_save_LIBS=$LIBS | 12113 ac_check_lib_save_LIBS=$LIBS |
21223 LIBS="-lintl $LIBS" | 12114 LIBS="-lintl $LIBS" |
21224 cat >conftest.$ac_ext <<_ACEOF | 12115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21225 /* confdefs.h. */ | |
21226 _ACEOF | |
21227 cat confdefs.h >>conftest.$ac_ext | |
21228 cat >>conftest.$ac_ext <<_ACEOF | |
21229 /* end confdefs.h. */ | 12116 /* end confdefs.h. */ |
21230 | 12117 |
21231 /* Override any GCC internal prototype to avoid an error. | 12118 /* Override any GCC internal prototype to avoid an error. |
21232 Use char because int might match the return type of a GCC | 12119 Use char because int might match the return type of a GCC |
21233 builtin and then its argument prototype would still apply. */ | 12120 builtin and then its argument prototype would still apply. */ |
21241 return strftime (); | 12128 return strftime (); |
21242 ; | 12129 ; |
21243 return 0; | 12130 return 0; |
21244 } | 12131 } |
21245 _ACEOF | 12132 _ACEOF |
21246 rm -f conftest.$ac_objext conftest$ac_exeext | 12133 if ac_fn_c_try_link "$LINENO"; then : |
21247 if { (ac_try="$ac_link" | |
21248 case "(($ac_try" in | |
21249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21250 *) ac_try_echo=$ac_try;; | |
21251 esac | |
21252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21253 $as_echo "$ac_try_echo") >&5 | |
21254 (eval "$ac_link") 2>conftest.er1 | |
21255 ac_status=$? | |
21256 grep -v '^ *+' conftest.er1 >conftest.err | |
21257 rm -f conftest.er1 | |
21258 cat conftest.err >&5 | |
21259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21260 (exit $ac_status); } && { | |
21261 test -z "$ac_c_werror_flag" || | |
21262 test ! -s conftest.err | |
21263 } && test -s conftest$ac_exeext && { | |
21264 test "$cross_compiling" = yes || | |
21265 $as_test_x conftest$ac_exeext | |
21266 }; then | |
21267 ac_cv_lib_intl_strftime=yes | 12134 ac_cv_lib_intl_strftime=yes |
21268 else | 12135 else |
21269 $as_echo "$as_me: failed program was:" >&5 | 12136 ac_cv_lib_intl_strftime=no |
21270 sed 's/^/| /' conftest.$ac_ext >&5 | 12137 fi |
21271 | 12138 rm -f core conftest.err conftest.$ac_objext \ |
21272 ac_cv_lib_intl_strftime=no | 12139 conftest$ac_exeext conftest.$ac_ext |
21273 fi | |
21274 | |
21275 rm -rf conftest.dSYM | |
21276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21277 conftest$ac_exeext conftest.$ac_ext | |
21278 LIBS=$ac_check_lib_save_LIBS | 12140 LIBS=$ac_check_lib_save_LIBS |
21279 fi | 12141 fi |
21280 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | 12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 |
21281 $as_echo "$ac_cv_lib_intl_strftime" >&6; } | 12143 $as_echo "$ac_cv_lib_intl_strftime" >&6; } |
21282 if test $ac_cv_lib_intl_strftime = yes; then | 12144 if test "x$ac_cv_lib_intl_strftime" = x""yes; then : |
21283 cat >>confdefs.h <<\_ACEOF | 12145 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h |
21284 #define HAVE_STRFTIME 1 | |
21285 _ACEOF | |
21286 | 12146 |
21287 LIBS="-lintl $LIBS" | 12147 LIBS="-lintl $LIBS" |
21288 fi | 12148 fi |
21289 | 12149 |
21290 fi | 12150 fi |
21291 done | 12151 done |
21292 | 12152 |
21293 | 12153 |
21294 # UNIX98 PTYs. | 12154 # UNIX98 PTYs. |
21295 | |
21296 for ac_func in grantpt | 12155 for ac_func in grantpt |
21297 do | 12156 do : |
21298 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 12157 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" |
21299 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 12158 if test "x$ac_cv_func_grantpt" = x""yes; then : |
21300 $as_echo_n "checking for $ac_func... " >&6; } | |
21301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
21302 $as_echo_n "(cached) " >&6 | |
21303 else | |
21304 cat >conftest.$ac_ext <<_ACEOF | |
21305 /* confdefs.h. */ | |
21306 _ACEOF | |
21307 cat confdefs.h >>conftest.$ac_ext | |
21308 cat >>conftest.$ac_ext <<_ACEOF | |
21309 /* end confdefs.h. */ | |
21310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
21311 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21312 #define $ac_func innocuous_$ac_func | |
21313 | |
21314 /* System header to define __stub macros and hopefully few prototypes, | |
21315 which can conflict with char $ac_func (); below. | |
21316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21317 <limits.h> exists even on freestanding compilers. */ | |
21318 | |
21319 #ifdef __STDC__ | |
21320 # include <limits.h> | |
21321 #else | |
21322 # include <assert.h> | |
21323 #endif | |
21324 | |
21325 #undef $ac_func | |
21326 | |
21327 /* Override any GCC internal prototype to avoid an error. | |
21328 Use char because int might match the return type of a GCC | |
21329 builtin and then its argument prototype would still apply. */ | |
21330 #ifdef __cplusplus | |
21331 extern "C" | |
21332 #endif | |
21333 char $ac_func (); | |
21334 /* The GNU C library defines this for functions which it implements | |
21335 to always fail with ENOSYS. Some functions are actually named | |
21336 something starting with __ and the normal name is an alias. */ | |
21337 #if defined __stub_$ac_func || defined __stub___$ac_func | |
21338 choke me | |
21339 #endif | |
21340 | |
21341 int | |
21342 main () | |
21343 { | |
21344 return $ac_func (); | |
21345 ; | |
21346 return 0; | |
21347 } | |
21348 _ACEOF | |
21349 rm -f conftest.$ac_objext conftest$ac_exeext | |
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 eval "$as_ac_var=yes" | |
21371 else | |
21372 $as_echo "$as_me: failed program was:" >&5 | |
21373 sed 's/^/| /' conftest.$ac_ext >&5 | |
21374 | |
21375 eval "$as_ac_var=no" | |
21376 fi | |
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 fi | |
21382 ac_res=`eval 'as_val=${'$as_ac_var'} | |
21383 $as_echo "$as_val"'` | |
21384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21385 $as_echo "$ac_res" >&6; } | |
21386 if test `eval 'as_val=${'$as_ac_var'} | |
21387 $as_echo "$as_val"'` = yes; then | |
21388 cat >>confdefs.h <<_ACEOF | 12159 cat >>confdefs.h <<_ACEOF |
21389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 12160 #define HAVE_GRANTPT 1 |
21390 _ACEOF | 12161 _ACEOF |
21391 | 12162 |
21392 fi | 12163 fi |
21393 done | 12164 done |
21394 | 12165 |
21395 | 12166 |
21396 # PTY-related GNU extensions. | 12167 # PTY-related GNU extensions. |
21397 | |
21398 for ac_func in getpt | 12168 for ac_func in getpt |
21399 do | 12169 do : |
21400 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 12170 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt" |
21401 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 12171 if test "x$ac_cv_func_getpt" = x""yes; then : |
21402 $as_echo_n "checking for $ac_func... " >&6; } | |
21403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
21404 $as_echo_n "(cached) " >&6 | |
21405 else | |
21406 cat >conftest.$ac_ext <<_ACEOF | |
21407 /* confdefs.h. */ | |
21408 _ACEOF | |
21409 cat confdefs.h >>conftest.$ac_ext | |
21410 cat >>conftest.$ac_ext <<_ACEOF | |
21411 /* end confdefs.h. */ | |
21412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
21413 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21414 #define $ac_func innocuous_$ac_func | |
21415 | |
21416 /* System header to define __stub macros and hopefully few prototypes, | |
21417 which can conflict with char $ac_func (); 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 $ac_func | |
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 $ac_func (); | |
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_$ac_func || defined __stub___$ac_func | |
21440 choke me | |
21441 #endif | |
21442 | |
21443 int | |
21444 main () | |
21445 { | |
21446 return $ac_func (); | |
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 eval "$as_ac_var=yes" | |
21473 else | |
21474 $as_echo "$as_me: failed program was:" >&5 | |
21475 sed 's/^/| /' conftest.$ac_ext >&5 | |
21476 | |
21477 eval "$as_ac_var=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 ac_res=`eval 'as_val=${'$as_ac_var'} | |
21485 $as_echo "$as_val"'` | |
21486 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21487 $as_echo "$ac_res" >&6; } | |
21488 if test `eval 'as_val=${'$as_ac_var'} | |
21489 $as_echo "$as_val"'` = yes; then | |
21490 cat >>confdefs.h <<_ACEOF | 12172 cat >>confdefs.h <<_ACEOF |
21491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 12173 #define HAVE_GETPT 1 |
21492 _ACEOF | 12174 _ACEOF |
21493 | 12175 |
21494 fi | 12176 fi |
21495 done | 12177 done |
21496 | 12178 |
21499 # That is because we have not set up to link ncurses in lib-src. | 12181 # That is because we have not set up to link ncurses in lib-src. |
21500 # It's better to believe a function is not available | 12182 # It's better to believe a function is not available |
21501 # than to expect to find it in ncurses. | 12183 # than to expect to find it in ncurses. |
21502 # Also we need tputs and friends to be able to build at all. | 12184 # Also we need tputs and friends to be able to build at all. |
21503 have_tputs_et_al=true | 12185 have_tputs_et_al=true |
21504 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5 | 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5 |
21505 $as_echo_n "checking for library containing tputs... " >&6; } | 12187 $as_echo_n "checking for library containing tputs... " >&6; } |
21506 if test "${ac_cv_search_tputs+set}" = set; then | 12188 if test "${ac_cv_search_tputs+set}" = set; then : |
21507 $as_echo_n "(cached) " >&6 | 12189 $as_echo_n "(cached) " >&6 |
21508 else | 12190 else |
21509 ac_func_search_save_LIBS=$LIBS | 12191 ac_func_search_save_LIBS=$LIBS |
21510 cat >conftest.$ac_ext <<_ACEOF | 12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21511 /* confdefs.h. */ | |
21512 _ACEOF | |
21513 cat confdefs.h >>conftest.$ac_ext | |
21514 cat >>conftest.$ac_ext <<_ACEOF | |
21515 /* end confdefs.h. */ | 12193 /* end confdefs.h. */ |
21516 | 12194 |
21517 /* Override any GCC internal prototype to avoid an error. | 12195 /* Override any GCC internal prototype to avoid an error. |
21518 Use char because int might match the return type of a GCC | 12196 Use char because int might match the return type of a GCC |
21519 builtin and then its argument prototype would still apply. */ | 12197 builtin and then its argument prototype would still apply. */ |
21534 ac_res="none required" | 12212 ac_res="none required" |
21535 else | 12213 else |
21536 ac_res=-l$ac_lib | 12214 ac_res=-l$ac_lib |
21537 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | 12215 LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
21538 fi | 12216 fi |
21539 rm -f conftest.$ac_objext conftest$ac_exeext | 12217 if ac_fn_c_try_link "$LINENO"; then : |
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_search_tputs=$ac_res | 12218 ac_cv_search_tputs=$ac_res |
21561 else | 12219 fi |
21562 $as_echo "$as_me: failed program was:" >&5 | 12220 rm -f core conftest.err conftest.$ac_objext \ |
21563 sed 's/^/| /' conftest.$ac_ext >&5 | 12221 conftest$ac_exeext |
21564 | 12222 if test "${ac_cv_search_tputs+set}" = set; then : |
21565 | |
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 | |
21571 if test "${ac_cv_search_tputs+set}" = set; then | |
21572 break | 12223 break |
21573 fi | 12224 fi |
21574 done | 12225 done |
21575 if test "${ac_cv_search_tputs+set}" = set; then | 12226 if test "${ac_cv_search_tputs+set}" = set; then : |
21576 : | 12227 |
21577 else | 12228 else |
21578 ac_cv_search_tputs=no | 12229 ac_cv_search_tputs=no |
21579 fi | 12230 fi |
21580 rm conftest.$ac_ext | 12231 rm conftest.$ac_ext |
21581 LIBS=$ac_func_search_save_LIBS | 12232 LIBS=$ac_func_search_save_LIBS |
21582 fi | 12233 fi |
21583 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5 | 12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5 |
21584 $as_echo "$ac_cv_search_tputs" >&6; } | 12235 $as_echo "$ac_cv_search_tputs" >&6; } |
21585 ac_res=$ac_cv_search_tputs | 12236 ac_res=$ac_cv_search_tputs |
21586 if test "$ac_res" != no; then | 12237 if test "$ac_res" != no; then : |
21587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 12238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
21588 | 12239 |
21589 else | 12240 else |
21590 have_tputs_et_al=false | 12241 have_tputs_et_al=false |
21591 fi | 12242 fi |
21592 | 12243 |
21593 if test "$have_tputs_et_al" != true; then | 12244 if test "$have_tputs_et_al" != true; then |
21594 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends). | 12245 as_fn_error "I couldn't find termcap functions (tputs and friends). |
21595 Maybe some development libraries/packages are missing? Try installing | 12246 Maybe some development libraries/packages are missing? Try installing |
21596 libncurses-dev(el), libterminfo-dev(el) or similar." >&5 | 12247 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5 |
21597 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends). | |
21598 Maybe some development libraries/packages are missing? Try installing | |
21599 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;} | |
21600 { (exit 1); exit 1; }; } | |
21601 fi | 12248 fi |
21602 # Must define this when any termcap library is found. | 12249 # Must define this when any termcap library is found. |
21603 | 12250 |
21604 cat >>confdefs.h <<\_ACEOF | 12251 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h |
21605 #define HAVE_LIBNCURSES 1 | |
21606 _ACEOF | |
21607 | 12252 |
21608 ## FIXME This was the cpp logic, but I am not sure it is right. | 12253 ## FIXME This was the cpp logic, but I am not sure it is right. |
21609 ## The above test has not necessarily found libncurses. | 12254 ## The above test has not necessarily found libncurses. |
21610 HAVE_LIBNCURSES=yes | 12255 HAVE_LIBNCURSES=yes |
21611 | 12256 |
21633 LIBS_TERMCAP="-lncurses" | 12278 LIBS_TERMCAP="-lncurses" |
21634 fi | 12279 fi |
21635 ;; | 12280 ;; |
21636 | 12281 |
21637 freebsd) | 12282 freebsd) |
21638 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo" >&5 | 12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5 |
21639 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; } | 12284 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; } |
21640 if test "${emacs_cv_freebsd_terminfo+set}" = set; then | 12285 if test "${emacs_cv_freebsd_terminfo+set}" = set; then : |
21641 $as_echo_n "(cached) " >&6 | 12286 $as_echo_n "(cached) " >&6 |
21642 else | 12287 else |
21643 cat >conftest.$ac_ext <<_ACEOF | 12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21644 /* confdefs.h. */ | |
21645 _ACEOF | |
21646 cat confdefs.h >>conftest.$ac_ext | |
21647 cat >>conftest.$ac_ext <<_ACEOF | |
21648 /* end confdefs.h. */ | 12289 /* end confdefs.h. */ |
21649 #include <osreldate.h> | 12290 #include <osreldate.h> |
21650 int | 12291 int |
21651 main () | 12292 main () |
21652 { | 12293 { |
21656 | 12297 |
21657 ; | 12298 ; |
21658 return 0; | 12299 return 0; |
21659 } | 12300 } |
21660 _ACEOF | 12301 _ACEOF |
21661 rm -f conftest.$ac_objext conftest$ac_exeext | 12302 if ac_fn_c_try_link "$LINENO"; then : |
21662 if { (ac_try="$ac_link" | |
21663 case "(($ac_try" in | |
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21665 *) ac_try_echo=$ac_try;; | |
21666 esac | |
21667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21668 $as_echo "$ac_try_echo") >&5 | |
21669 (eval "$ac_link") 2>conftest.er1 | |
21670 ac_status=$? | |
21671 grep -v '^ *+' conftest.er1 >conftest.err | |
21672 rm -f conftest.er1 | |
21673 cat conftest.err >&5 | |
21674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21675 (exit $ac_status); } && { | |
21676 test -z "$ac_c_werror_flag" || | |
21677 test ! -s conftest.err | |
21678 } && test -s conftest$ac_exeext && { | |
21679 test "$cross_compiling" = yes || | |
21680 $as_test_x conftest$ac_exeext | |
21681 }; then | |
21682 emacs_cv_freebsd_terminfo=yes | 12303 emacs_cv_freebsd_terminfo=yes |
21683 else | 12304 else |
21684 $as_echo "$as_me: failed program was:" >&5 | 12305 emacs_cv_freebsd_terminfo=no |
21685 sed 's/^/| /' conftest.$ac_ext >&5 | 12306 fi |
21686 | 12307 rm -f core conftest.err conftest.$ac_objext \ |
21687 emacs_cv_freebsd_terminfo=no | 12308 conftest$ac_exeext conftest.$ac_ext |
21688 fi | 12309 fi |
21689 | 12310 |
21690 rm -rf conftest.dSYM | 12311 |
21691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | 12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5 |
21692 conftest$ac_exeext conftest.$ac_ext | |
21693 fi | |
21694 | |
21695 | |
21696 { $as_echo "$as_me:$LINENO: result: $emacs_cv_freebsd_terminfo" >&5 | |
21697 $as_echo "$emacs_cv_freebsd_terminfo" >&6; } | 12313 $as_echo "$emacs_cv_freebsd_terminfo" >&6; } |
21698 | 12314 |
21699 if test $emacs_cv_freebsd_terminfo = yes; then | 12315 if test $emacs_cv_freebsd_terminfo = yes; then |
21700 TERMINFO=yes | 12316 TERMINFO=yes |
21701 LIBS_TERMCAP="-lncurses" | 12317 LIBS_TERMCAP="-lncurses" |
21728 esac | 12344 esac |
21729 | 12345 |
21730 TERMCAP_OBJ=tparam.o | 12346 TERMCAP_OBJ=tparam.o |
21731 if test $TERMINFO = yes; then | 12347 if test $TERMINFO = yes; then |
21732 | 12348 |
21733 cat >>confdefs.h <<\_ACEOF | 12349 $as_echo "#define TERMINFO 1" >>confdefs.h |
21734 #define TERMINFO 1 | |
21735 _ACEOF | |
21736 | 12350 |
21737 | 12351 |
21738 ## Default used to be -ltermcap. Add a case above if need something else. | 12352 ## Default used to be -ltermcap. Add a case above if need something else. |
21739 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses" | 12353 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses" |
21740 | 12354 |
21744 | 12358 |
21745 | 12359 |
21746 | 12360 |
21747 # Do we have res_init, for detecting changes in /etc/resolv.conf? | 12361 # Do we have res_init, for detecting changes in /etc/resolv.conf? |
21748 resolv=no | 12362 resolv=no |
21749 cat >conftest.$ac_ext <<_ACEOF | 12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21750 /* confdefs.h. */ | |
21751 _ACEOF | |
21752 cat confdefs.h >>conftest.$ac_ext | |
21753 cat >>conftest.$ac_ext <<_ACEOF | |
21754 /* end confdefs.h. */ | 12364 /* end confdefs.h. */ |
21755 #include <netinet/in.h> | 12365 #include <netinet/in.h> |
21756 #include <arpa/nameser.h> | 12366 #include <arpa/nameser.h> |
21757 #include <resolv.h> | 12367 #include <resolv.h> |
21758 int | 12368 int |
21761 return res_init(); | 12371 return res_init(); |
21762 ; | 12372 ; |
21763 return 0; | 12373 return 0; |
21764 } | 12374 } |
21765 _ACEOF | 12375 _ACEOF |
21766 rm -f conftest.$ac_objext conftest$ac_exeext | 12376 if ac_fn_c_try_link "$LINENO"; then : |
21767 if { (ac_try="$ac_link" | |
21768 case "(($ac_try" in | |
21769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21770 *) ac_try_echo=$ac_try;; | |
21771 esac | |
21772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21773 $as_echo "$ac_try_echo") >&5 | |
21774 (eval "$ac_link") 2>conftest.er1 | |
21775 ac_status=$? | |
21776 grep -v '^ *+' conftest.er1 >conftest.err | |
21777 rm -f conftest.er1 | |
21778 cat conftest.err >&5 | |
21779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21780 (exit $ac_status); } && { | |
21781 test -z "$ac_c_werror_flag" || | |
21782 test ! -s conftest.err | |
21783 } && test -s conftest$ac_exeext && { | |
21784 test "$cross_compiling" = yes || | |
21785 $as_test_x conftest$ac_exeext | |
21786 }; then | |
21787 have_res_init=yes | 12377 have_res_init=yes |
21788 else | 12378 else |
21789 $as_echo "$as_me: failed program was:" >&5 | 12379 have_res_init=no |
21790 sed 's/^/| /' conftest.$ac_ext >&5 | 12380 fi |
21791 | 12381 rm -f core conftest.err conftest.$ac_objext \ |
21792 have_res_init=no | 12382 conftest$ac_exeext conftest.$ac_ext |
21793 fi | |
21794 | |
21795 rm -rf conftest.dSYM | |
21796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21797 conftest$ac_exeext conftest.$ac_ext | |
21798 if test "$have_res_init" = no; then | 12383 if test "$have_res_init" = no; then |
21799 OLIBS="$LIBS" | 12384 OLIBS="$LIBS" |
21800 LIBS="$LIBS -lresolv" | 12385 LIBS="$LIBS -lresolv" |
21801 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5 | 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5 |
21802 $as_echo_n "checking for res_init with -lresolv... " >&6; } | 12387 $as_echo_n "checking for res_init with -lresolv... " >&6; } |
21803 cat >conftest.$ac_ext <<_ACEOF | 12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21804 /* confdefs.h. */ | |
21805 _ACEOF | |
21806 cat confdefs.h >>conftest.$ac_ext | |
21807 cat >>conftest.$ac_ext <<_ACEOF | |
21808 /* end confdefs.h. */ | 12389 /* end confdefs.h. */ |
21809 #include <netinet/in.h> | 12390 #include <netinet/in.h> |
21810 #include <arpa/nameser.h> | 12391 #include <arpa/nameser.h> |
21811 #include <resolv.h> | 12392 #include <resolv.h> |
21812 int | 12393 int |
21815 return res_init(); | 12396 return res_init(); |
21816 ; | 12397 ; |
21817 return 0; | 12398 return 0; |
21818 } | 12399 } |
21819 _ACEOF | 12400 _ACEOF |
21820 rm -f conftest.$ac_objext conftest$ac_exeext | 12401 if ac_fn_c_try_link "$LINENO"; then : |
21821 if { (ac_try="$ac_link" | |
21822 case "(($ac_try" in | |
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21824 *) ac_try_echo=$ac_try;; | |
21825 esac | |
21826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21827 $as_echo "$ac_try_echo") >&5 | |
21828 (eval "$ac_link") 2>conftest.er1 | |
21829 ac_status=$? | |
21830 grep -v '^ *+' conftest.er1 >conftest.err | |
21831 rm -f conftest.er1 | |
21832 cat conftest.err >&5 | |
21833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21834 (exit $ac_status); } && { | |
21835 test -z "$ac_c_werror_flag" || | |
21836 test ! -s conftest.err | |
21837 } && test -s conftest$ac_exeext && { | |
21838 test "$cross_compiling" = yes || | |
21839 $as_test_x conftest$ac_exeext | |
21840 }; then | |
21841 have_res_init=yes | 12402 have_res_init=yes |
21842 else | 12403 else |
21843 $as_echo "$as_me: failed program was:" >&5 | 12404 have_res_init=no |
21844 sed 's/^/| /' conftest.$ac_ext >&5 | 12405 fi |
21845 | 12406 rm -f core conftest.err conftest.$ac_objext \ |
21846 have_res_init=no | 12407 conftest$ac_exeext conftest.$ac_ext |
21847 fi | 12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5 |
21848 | |
21849 rm -rf conftest.dSYM | |
21850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21851 conftest$ac_exeext conftest.$ac_ext | |
21852 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5 | |
21853 $as_echo "$have_res_init" >&6; } | 12409 $as_echo "$have_res_init" >&6; } |
21854 if test "$have_res_init" = yes ; then | 12410 if test "$have_res_init" = yes ; then |
21855 resolv=yes | 12411 resolv=yes |
21856 fi | 12412 fi |
21857 LIBS="$OLIBS" | 12413 LIBS="$OLIBS" |
21858 fi | 12414 fi |
21859 | 12415 |
21860 if test "$have_res_init" = yes; then | 12416 if test "$have_res_init" = yes; then |
21861 | 12417 |
21862 cat >>confdefs.h <<\_ACEOF | 12418 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h |
21863 #define HAVE_RES_INIT 1 | |
21864 _ACEOF | |
21865 | 12419 |
21866 fi | 12420 fi |
21867 | 12421 |
21868 # Do we need the Hesiod library to provide the support routines? | 12422 # Do we need the Hesiod library to provide the support routines? |
21869 LIBHESIOD= | 12423 LIBHESIOD= |
21870 if test "$with_hesiod" != no ; then | 12424 if test "$with_hesiod" != no ; then |
21871 # Don't set $LIBS here -- see comments above. FIXME which comments? | 12425 # Don't set $LIBS here -- see comments above. FIXME which comments? |
21872 { $as_echo "$as_me:$LINENO: checking for res_send" >&5 | 12426 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send" |
21873 $as_echo_n "checking for res_send... " >&6; } | 12427 if test "x$ac_cv_func_res_send" = x""yes; then : |
21874 if test "${ac_cv_func_res_send+set}" = set; then | 12428 |
21875 $as_echo_n "(cached) " >&6 | 12429 else |
21876 else | 12430 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send" |
21877 cat >conftest.$ac_ext <<_ACEOF | 12431 if test "x$ac_cv_func___res_send" = x""yes; then : |
21878 /* confdefs.h. */ | 12432 |
21879 _ACEOF | 12433 else |
21880 cat confdefs.h >>conftest.$ac_ext | 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5 |
21881 cat >>conftest.$ac_ext <<_ACEOF | |
21882 /* end confdefs.h. */ | |
21883 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send. | |
21884 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21885 #define res_send innocuous_res_send | |
21886 | |
21887 /* System header to define __stub macros and hopefully few prototypes, | |
21888 which can conflict with char res_send (); below. | |
21889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21890 <limits.h> exists even on freestanding compilers. */ | |
21891 | |
21892 #ifdef __STDC__ | |
21893 # include <limits.h> | |
21894 #else | |
21895 # include <assert.h> | |
21896 #endif | |
21897 | |
21898 #undef res_send | |
21899 | |
21900 /* Override any GCC internal prototype to avoid an error. | |
21901 Use char because int might match the return type of a GCC | |
21902 builtin and then its argument prototype would still apply. */ | |
21903 #ifdef __cplusplus | |
21904 extern "C" | |
21905 #endif | |
21906 char res_send (); | |
21907 /* The GNU C library defines this for functions which it implements | |
21908 to always fail with ENOSYS. Some functions are actually named | |
21909 something starting with __ and the normal name is an alias. */ | |
21910 #if defined __stub_res_send || defined __stub___res_send | |
21911 choke me | |
21912 #endif | |
21913 | |
21914 int | |
21915 main () | |
21916 { | |
21917 return res_send (); | |
21918 ; | |
21919 return 0; | |
21920 } | |
21921 _ACEOF | |
21922 rm -f conftest.$ac_objext conftest$ac_exeext | |
21923 if { (ac_try="$ac_link" | |
21924 case "(($ac_try" in | |
21925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21926 *) ac_try_echo=$ac_try;; | |
21927 esac | |
21928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21929 $as_echo "$ac_try_echo") >&5 | |
21930 (eval "$ac_link") 2>conftest.er1 | |
21931 ac_status=$? | |
21932 grep -v '^ *+' conftest.er1 >conftest.err | |
21933 rm -f conftest.er1 | |
21934 cat conftest.err >&5 | |
21935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21936 (exit $ac_status); } && { | |
21937 test -z "$ac_c_werror_flag" || | |
21938 test ! -s conftest.err | |
21939 } && test -s conftest$ac_exeext && { | |
21940 test "$cross_compiling" = yes || | |
21941 $as_test_x conftest$ac_exeext | |
21942 }; then | |
21943 ac_cv_func_res_send=yes | |
21944 else | |
21945 $as_echo "$as_me: failed program was:" >&5 | |
21946 sed 's/^/| /' conftest.$ac_ext >&5 | |
21947 | |
21948 ac_cv_func_res_send=no | |
21949 fi | |
21950 | |
21951 rm -rf conftest.dSYM | |
21952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21953 conftest$ac_exeext conftest.$ac_ext | |
21954 fi | |
21955 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 | |
21956 $as_echo "$ac_cv_func_res_send" >&6; } | |
21957 if test $ac_cv_func_res_send = yes; then | |
21958 : | |
21959 else | |
21960 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5 | |
21961 $as_echo_n "checking for __res_send... " >&6; } | |
21962 if test "${ac_cv_func___res_send+set}" = set; then | |
21963 $as_echo_n "(cached) " >&6 | |
21964 else | |
21965 cat >conftest.$ac_ext <<_ACEOF | |
21966 /* confdefs.h. */ | |
21967 _ACEOF | |
21968 cat confdefs.h >>conftest.$ac_ext | |
21969 cat >>conftest.$ac_ext <<_ACEOF | |
21970 /* end confdefs.h. */ | |
21971 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send. | |
21972 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21973 #define __res_send innocuous___res_send | |
21974 | |
21975 /* System header to define __stub macros and hopefully few prototypes, | |
21976 which can conflict with char __res_send (); below. | |
21977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21978 <limits.h> exists even on freestanding compilers. */ | |
21979 | |
21980 #ifdef __STDC__ | |
21981 # include <limits.h> | |
21982 #else | |
21983 # include <assert.h> | |
21984 #endif | |
21985 | |
21986 #undef __res_send | |
21987 | |
21988 /* Override any GCC internal prototype to avoid an error. | |
21989 Use char because int might match the return type of a GCC | |
21990 builtin and then its argument prototype would still apply. */ | |
21991 #ifdef __cplusplus | |
21992 extern "C" | |
21993 #endif | |
21994 char __res_send (); | |
21995 /* The GNU C library defines this for functions which it implements | |
21996 to always fail with ENOSYS. Some functions are actually named | |
21997 something starting with __ and the normal name is an alias. */ | |
21998 #if defined __stub___res_send || defined __stub_____res_send | |
21999 choke me | |
22000 #endif | |
22001 | |
22002 int | |
22003 main () | |
22004 { | |
22005 return __res_send (); | |
22006 ; | |
22007 return 0; | |
22008 } | |
22009 _ACEOF | |
22010 rm -f conftest.$ac_objext conftest$ac_exeext | |
22011 if { (ac_try="$ac_link" | |
22012 case "(($ac_try" in | |
22013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22014 *) ac_try_echo=$ac_try;; | |
22015 esac | |
22016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22017 $as_echo "$ac_try_echo") >&5 | |
22018 (eval "$ac_link") 2>conftest.er1 | |
22019 ac_status=$? | |
22020 grep -v '^ *+' conftest.er1 >conftest.err | |
22021 rm -f conftest.er1 | |
22022 cat conftest.err >&5 | |
22023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22024 (exit $ac_status); } && { | |
22025 test -z "$ac_c_werror_flag" || | |
22026 test ! -s conftest.err | |
22027 } && test -s conftest$ac_exeext && { | |
22028 test "$cross_compiling" = yes || | |
22029 $as_test_x conftest$ac_exeext | |
22030 }; then | |
22031 ac_cv_func___res_send=yes | |
22032 else | |
22033 $as_echo "$as_me: failed program was:" >&5 | |
22034 sed 's/^/| /' conftest.$ac_ext >&5 | |
22035 | |
22036 ac_cv_func___res_send=no | |
22037 fi | |
22038 | |
22039 rm -rf conftest.dSYM | |
22040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22041 conftest$ac_exeext conftest.$ac_ext | |
22042 fi | |
22043 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 | |
22044 $as_echo "$ac_cv_func___res_send" >&6; } | |
22045 if test $ac_cv_func___res_send = yes; then | |
22046 : | |
22047 else | |
22048 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 | |
22049 $as_echo_n "checking for res_send in -lresolv... " >&6; } | 12435 $as_echo_n "checking for res_send in -lresolv... " >&6; } |
22050 if test "${ac_cv_lib_resolv_res_send+set}" = set; then | 12436 if test "${ac_cv_lib_resolv_res_send+set}" = set; then : |
22051 $as_echo_n "(cached) " >&6 | 12437 $as_echo_n "(cached) " >&6 |
22052 else | 12438 else |
22053 ac_check_lib_save_LIBS=$LIBS | 12439 ac_check_lib_save_LIBS=$LIBS |
22054 LIBS="-lresolv $LIBS" | 12440 LIBS="-lresolv $LIBS" |
22055 cat >conftest.$ac_ext <<_ACEOF | 12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22056 /* confdefs.h. */ | |
22057 _ACEOF | |
22058 cat confdefs.h >>conftest.$ac_ext | |
22059 cat >>conftest.$ac_ext <<_ACEOF | |
22060 /* end confdefs.h. */ | 12442 /* end confdefs.h. */ |
22061 | 12443 |
22062 /* Override any GCC internal prototype to avoid an error. | 12444 /* Override any GCC internal prototype to avoid an error. |
22063 Use char because int might match the return type of a GCC | 12445 Use char because int might match the return type of a GCC |
22064 builtin and then its argument prototype would still apply. */ | 12446 builtin and then its argument prototype would still apply. */ |
22072 return res_send (); | 12454 return res_send (); |
22073 ; | 12455 ; |
22074 return 0; | 12456 return 0; |
22075 } | 12457 } |
22076 _ACEOF | 12458 _ACEOF |
22077 rm -f conftest.$ac_objext conftest$ac_exeext | 12459 if ac_fn_c_try_link "$LINENO"; then : |
22078 if { (ac_try="$ac_link" | |
22079 case "(($ac_try" in | |
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22081 *) ac_try_echo=$ac_try;; | |
22082 esac | |
22083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22084 $as_echo "$ac_try_echo") >&5 | |
22085 (eval "$ac_link") 2>conftest.er1 | |
22086 ac_status=$? | |
22087 grep -v '^ *+' conftest.er1 >conftest.err | |
22088 rm -f conftest.er1 | |
22089 cat conftest.err >&5 | |
22090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22091 (exit $ac_status); } && { | |
22092 test -z "$ac_c_werror_flag" || | |
22093 test ! -s conftest.err | |
22094 } && test -s conftest$ac_exeext && { | |
22095 test "$cross_compiling" = yes || | |
22096 $as_test_x conftest$ac_exeext | |
22097 }; then | |
22098 ac_cv_lib_resolv_res_send=yes | 12460 ac_cv_lib_resolv_res_send=yes |
22099 else | 12461 else |
22100 $as_echo "$as_me: failed program was:" >&5 | 12462 ac_cv_lib_resolv_res_send=no |
22101 sed 's/^/| /' conftest.$ac_ext >&5 | 12463 fi |
22102 | 12464 rm -f core conftest.err conftest.$ac_objext \ |
22103 ac_cv_lib_resolv_res_send=no | 12465 conftest$ac_exeext conftest.$ac_ext |
22104 fi | |
22105 | |
22106 rm -rf conftest.dSYM | |
22107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22108 conftest$ac_exeext conftest.$ac_ext | |
22109 LIBS=$ac_check_lib_save_LIBS | 12466 LIBS=$ac_check_lib_save_LIBS |
22110 fi | 12467 fi |
22111 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 | 12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5 |
22112 $as_echo "$ac_cv_lib_resolv_res_send" >&6; } | 12469 $as_echo "$ac_cv_lib_resolv_res_send" >&6; } |
22113 if test $ac_cv_lib_resolv_res_send = yes; then | 12470 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then : |
22114 resolv=yes | 12471 resolv=yes |
22115 else | 12472 else |
22116 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 | 12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5 |
22117 $as_echo_n "checking for __res_send in -lresolv... " >&6; } | 12474 $as_echo_n "checking for __res_send in -lresolv... " >&6; } |
22118 if test "${ac_cv_lib_resolv___res_send+set}" = set; then | 12475 if test "${ac_cv_lib_resolv___res_send+set}" = set; then : |
22119 $as_echo_n "(cached) " >&6 | 12476 $as_echo_n "(cached) " >&6 |
22120 else | 12477 else |
22121 ac_check_lib_save_LIBS=$LIBS | 12478 ac_check_lib_save_LIBS=$LIBS |
22122 LIBS="-lresolv $LIBS" | 12479 LIBS="-lresolv $LIBS" |
22123 cat >conftest.$ac_ext <<_ACEOF | 12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22124 /* confdefs.h. */ | |
22125 _ACEOF | |
22126 cat confdefs.h >>conftest.$ac_ext | |
22127 cat >>conftest.$ac_ext <<_ACEOF | |
22128 /* end confdefs.h. */ | 12481 /* end confdefs.h. */ |
22129 | 12482 |
22130 /* Override any GCC internal prototype to avoid an error. | 12483 /* Override any GCC internal prototype to avoid an error. |
22131 Use char because int might match the return type of a GCC | 12484 Use char because int might match the return type of a GCC |
22132 builtin and then its argument prototype would still apply. */ | 12485 builtin and then its argument prototype would still apply. */ |
22140 return __res_send (); | 12493 return __res_send (); |
22141 ; | 12494 ; |
22142 return 0; | 12495 return 0; |
22143 } | 12496 } |
22144 _ACEOF | 12497 _ACEOF |
22145 rm -f conftest.$ac_objext conftest$ac_exeext | 12498 if ac_fn_c_try_link "$LINENO"; then : |
22146 if { (ac_try="$ac_link" | |
22147 case "(($ac_try" in | |
22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22149 *) ac_try_echo=$ac_try;; | |
22150 esac | |
22151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22152 $as_echo "$ac_try_echo") >&5 | |
22153 (eval "$ac_link") 2>conftest.er1 | |
22154 ac_status=$? | |
22155 grep -v '^ *+' conftest.er1 >conftest.err | |
22156 rm -f conftest.er1 | |
22157 cat conftest.err >&5 | |
22158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22159 (exit $ac_status); } && { | |
22160 test -z "$ac_c_werror_flag" || | |
22161 test ! -s conftest.err | |
22162 } && test -s conftest$ac_exeext && { | |
22163 test "$cross_compiling" = yes || | |
22164 $as_test_x conftest$ac_exeext | |
22165 }; then | |
22166 ac_cv_lib_resolv___res_send=yes | 12499 ac_cv_lib_resolv___res_send=yes |
22167 else | 12500 else |
22168 $as_echo "$as_me: failed program was:" >&5 | 12501 ac_cv_lib_resolv___res_send=no |
22169 sed 's/^/| /' conftest.$ac_ext >&5 | 12502 fi |
22170 | 12503 rm -f core conftest.err conftest.$ac_objext \ |
22171 ac_cv_lib_resolv___res_send=no | 12504 conftest$ac_exeext conftest.$ac_ext |
22172 fi | |
22173 | |
22174 rm -rf conftest.dSYM | |
22175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22176 conftest$ac_exeext conftest.$ac_ext | |
22177 LIBS=$ac_check_lib_save_LIBS | 12505 LIBS=$ac_check_lib_save_LIBS |
22178 fi | 12506 fi |
22179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 | 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5 |
22180 $as_echo "$ac_cv_lib_resolv___res_send" >&6; } | 12508 $as_echo "$ac_cv_lib_resolv___res_send" >&6; } |
22181 if test $ac_cv_lib_resolv___res_send = yes; then | 12509 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then : |
22182 resolv=yes | 12510 resolv=yes |
22183 fi | 12511 fi |
22184 | 12512 |
22185 fi | 12513 fi |
22186 | 12514 |
22191 if test "$resolv" = yes ; then | 12519 if test "$resolv" = yes ; then |
22192 RESOLVLIB=-lresolv | 12520 RESOLVLIB=-lresolv |
22193 else | 12521 else |
22194 RESOLVLIB= | 12522 RESOLVLIB= |
22195 fi | 12523 fi |
22196 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 | 12524 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost" |
22197 $as_echo_n "checking for hes_getmailhost... " >&6; } | 12525 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then : |
22198 if test "${ac_cv_func_hes_getmailhost+set}" = set; then | 12526 |
22199 $as_echo_n "(cached) " >&6 | 12527 else |
22200 else | 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5 |
22201 cat >conftest.$ac_ext <<_ACEOF | |
22202 /* confdefs.h. */ | |
22203 _ACEOF | |
22204 cat confdefs.h >>conftest.$ac_ext | |
22205 cat >>conftest.$ac_ext <<_ACEOF | |
22206 /* end confdefs.h. */ | |
22207 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost. | |
22208 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22209 #define hes_getmailhost innocuous_hes_getmailhost | |
22210 | |
22211 /* System header to define __stub macros and hopefully few prototypes, | |
22212 which can conflict with char hes_getmailhost (); below. | |
22213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22214 <limits.h> exists even on freestanding compilers. */ | |
22215 | |
22216 #ifdef __STDC__ | |
22217 # include <limits.h> | |
22218 #else | |
22219 # include <assert.h> | |
22220 #endif | |
22221 | |
22222 #undef hes_getmailhost | |
22223 | |
22224 /* Override any GCC internal prototype to avoid an error. | |
22225 Use char because int might match the return type of a GCC | |
22226 builtin and then its argument prototype would still apply. */ | |
22227 #ifdef __cplusplus | |
22228 extern "C" | |
22229 #endif | |
22230 char hes_getmailhost (); | |
22231 /* The GNU C library defines this for functions which it implements | |
22232 to always fail with ENOSYS. Some functions are actually named | |
22233 something starting with __ and the normal name is an alias. */ | |
22234 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost | |
22235 choke me | |
22236 #endif | |
22237 | |
22238 int | |
22239 main () | |
22240 { | |
22241 return hes_getmailhost (); | |
22242 ; | |
22243 return 0; | |
22244 } | |
22245 _ACEOF | |
22246 rm -f conftest.$ac_objext conftest$ac_exeext | |
22247 if { (ac_try="$ac_link" | |
22248 case "(($ac_try" in | |
22249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22250 *) ac_try_echo=$ac_try;; | |
22251 esac | |
22252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22253 $as_echo "$ac_try_echo") >&5 | |
22254 (eval "$ac_link") 2>conftest.er1 | |
22255 ac_status=$? | |
22256 grep -v '^ *+' conftest.er1 >conftest.err | |
22257 rm -f conftest.er1 | |
22258 cat conftest.err >&5 | |
22259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22260 (exit $ac_status); } && { | |
22261 test -z "$ac_c_werror_flag" || | |
22262 test ! -s conftest.err | |
22263 } && test -s conftest$ac_exeext && { | |
22264 test "$cross_compiling" = yes || | |
22265 $as_test_x conftest$ac_exeext | |
22266 }; then | |
22267 ac_cv_func_hes_getmailhost=yes | |
22268 else | |
22269 $as_echo "$as_me: failed program was:" >&5 | |
22270 sed 's/^/| /' conftest.$ac_ext >&5 | |
22271 | |
22272 ac_cv_func_hes_getmailhost=no | |
22273 fi | |
22274 | |
22275 rm -rf conftest.dSYM | |
22276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22277 conftest$ac_exeext conftest.$ac_ext | |
22278 fi | |
22279 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 | |
22280 $as_echo "$ac_cv_func_hes_getmailhost" >&6; } | |
22281 if test $ac_cv_func_hes_getmailhost = yes; then | |
22282 : | |
22283 else | |
22284 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 | |
22285 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } | 12529 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } |
22286 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then | 12530 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then : |
22287 $as_echo_n "(cached) " >&6 | 12531 $as_echo_n "(cached) " >&6 |
22288 else | 12532 else |
22289 ac_check_lib_save_LIBS=$LIBS | 12533 ac_check_lib_save_LIBS=$LIBS |
22290 LIBS="-lhesiod $RESOLVLIB $LIBS" | 12534 LIBS="-lhesiod $RESOLVLIB $LIBS" |
22291 cat >conftest.$ac_ext <<_ACEOF | 12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22292 /* confdefs.h. */ | |
22293 _ACEOF | |
22294 cat confdefs.h >>conftest.$ac_ext | |
22295 cat >>conftest.$ac_ext <<_ACEOF | |
22296 /* end confdefs.h. */ | 12536 /* end confdefs.h. */ |
22297 | 12537 |
22298 /* Override any GCC internal prototype to avoid an error. | 12538 /* Override any GCC internal prototype to avoid an error. |
22299 Use char because int might match the return type of a GCC | 12539 Use char because int might match the return type of a GCC |
22300 builtin and then its argument prototype would still apply. */ | 12540 builtin and then its argument prototype would still apply. */ |
22308 return hes_getmailhost (); | 12548 return hes_getmailhost (); |
22309 ; | 12549 ; |
22310 return 0; | 12550 return 0; |
22311 } | 12551 } |
22312 _ACEOF | 12552 _ACEOF |
22313 rm -f conftest.$ac_objext conftest$ac_exeext | 12553 if ac_fn_c_try_link "$LINENO"; then : |
22314 if { (ac_try="$ac_link" | |
22315 case "(($ac_try" in | |
22316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22317 *) ac_try_echo=$ac_try;; | |
22318 esac | |
22319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22320 $as_echo "$ac_try_echo") >&5 | |
22321 (eval "$ac_link") 2>conftest.er1 | |
22322 ac_status=$? | |
22323 grep -v '^ *+' conftest.er1 >conftest.err | |
22324 rm -f conftest.er1 | |
22325 cat conftest.err >&5 | |
22326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22327 (exit $ac_status); } && { | |
22328 test -z "$ac_c_werror_flag" || | |
22329 test ! -s conftest.err | |
22330 } && test -s conftest$ac_exeext && { | |
22331 test "$cross_compiling" = yes || | |
22332 $as_test_x conftest$ac_exeext | |
22333 }; then | |
22334 ac_cv_lib_hesiod_hes_getmailhost=yes | 12554 ac_cv_lib_hesiod_hes_getmailhost=yes |
22335 else | 12555 else |
22336 $as_echo "$as_me: failed program was:" >&5 | 12556 ac_cv_lib_hesiod_hes_getmailhost=no |
22337 sed 's/^/| /' conftest.$ac_ext >&5 | 12557 fi |
22338 | 12558 rm -f core conftest.err conftest.$ac_objext \ |
22339 ac_cv_lib_hesiod_hes_getmailhost=no | 12559 conftest$ac_exeext conftest.$ac_ext |
22340 fi | |
22341 | |
22342 rm -rf conftest.dSYM | |
22343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22344 conftest$ac_exeext conftest.$ac_ext | |
22345 LIBS=$ac_check_lib_save_LIBS | 12560 LIBS=$ac_check_lib_save_LIBS |
22346 fi | 12561 fi |
22347 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 | 12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
22348 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } | 12563 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } |
22349 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then | 12564 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then : |
22350 hesiod=yes | 12565 hesiod=yes |
22351 else | 12566 else |
22352 : | 12567 : |
22353 fi | 12568 fi |
22354 | 12569 |
22355 fi | 12570 fi |
22356 | 12571 |
22357 | 12572 |
22358 if test x"$hesiod" = xyes; then | 12573 if test x"$hesiod" = xyes; then |
22359 | 12574 |
22360 cat >>confdefs.h <<\_ACEOF | 12575 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h |
22361 #define HAVE_LIBHESIOD 1 | |
22362 _ACEOF | |
22363 | 12576 |
22364 LIBHESIOD=-lhesiod | 12577 LIBHESIOD=-lhesiod |
22365 fi | 12578 fi |
22366 fi | 12579 fi |
22367 | 12580 |
22368 | 12581 |
22369 # Do we need libresolv (due to res_init or Hesiod)? | 12582 # Do we need libresolv (due to res_init or Hesiod)? |
22370 if test "$resolv" = yes ; then | 12583 if test "$resolv" = yes ; then |
22371 | 12584 |
22372 cat >>confdefs.h <<\_ACEOF | 12585 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h |
22373 #define HAVE_LIBRESOLV 1 | |
22374 _ACEOF | |
22375 | 12586 |
22376 LIBRESOLV=-lresolv | 12587 LIBRESOLV=-lresolv |
22377 else | 12588 else |
22378 LIBRESOLV= | 12589 LIBRESOLV= |
22379 fi | 12590 fi |
22385 KRB5LIB= | 12596 KRB5LIB= |
22386 DESLIB= | 12597 DESLIB= |
22387 KRB4LIB= | 12598 KRB4LIB= |
22388 | 12599 |
22389 if test "${with_kerberos}" != no; then | 12600 if test "${with_kerberos}" != no; then |
22390 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 | 12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 |
22391 $as_echo_n "checking for com_err in -lcom_err... " >&6; } | 12602 $as_echo_n "checking for com_err in -lcom_err... " >&6; } |
22392 if test "${ac_cv_lib_com_err_com_err+set}" = set; then | 12603 if test "${ac_cv_lib_com_err_com_err+set}" = set; then : |
22393 $as_echo_n "(cached) " >&6 | 12604 $as_echo_n "(cached) " >&6 |
22394 else | 12605 else |
22395 ac_check_lib_save_LIBS=$LIBS | 12606 ac_check_lib_save_LIBS=$LIBS |
22396 LIBS="-lcom_err $LIBS" | 12607 LIBS="-lcom_err $LIBS" |
22397 cat >conftest.$ac_ext <<_ACEOF | 12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22398 /* confdefs.h. */ | |
22399 _ACEOF | |
22400 cat confdefs.h >>conftest.$ac_ext | |
22401 cat >>conftest.$ac_ext <<_ACEOF | |
22402 /* end confdefs.h. */ | 12609 /* end confdefs.h. */ |
22403 | 12610 |
22404 /* Override any GCC internal prototype to avoid an error. | 12611 /* Override any GCC internal prototype to avoid an error. |
22405 Use char because int might match the return type of a GCC | 12612 Use char because int might match the return type of a GCC |
22406 builtin and then its argument prototype would still apply. */ | 12613 builtin and then its argument prototype would still apply. */ |
22414 return com_err (); | 12621 return com_err (); |
22415 ; | 12622 ; |
22416 return 0; | 12623 return 0; |
22417 } | 12624 } |
22418 _ACEOF | 12625 _ACEOF |
22419 rm -f conftest.$ac_objext conftest$ac_exeext | 12626 if ac_fn_c_try_link "$LINENO"; then : |
22420 if { (ac_try="$ac_link" | |
22421 case "(($ac_try" in | |
22422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22423 *) ac_try_echo=$ac_try;; | |
22424 esac | |
22425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22426 $as_echo "$ac_try_echo") >&5 | |
22427 (eval "$ac_link") 2>conftest.er1 | |
22428 ac_status=$? | |
22429 grep -v '^ *+' conftest.er1 >conftest.err | |
22430 rm -f conftest.er1 | |
22431 cat conftest.err >&5 | |
22432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22433 (exit $ac_status); } && { | |
22434 test -z "$ac_c_werror_flag" || | |
22435 test ! -s conftest.err | |
22436 } && test -s conftest$ac_exeext && { | |
22437 test "$cross_compiling" = yes || | |
22438 $as_test_x conftest$ac_exeext | |
22439 }; then | |
22440 ac_cv_lib_com_err_com_err=yes | 12627 ac_cv_lib_com_err_com_err=yes |
22441 else | 12628 else |
22442 $as_echo "$as_me: failed program was:" >&5 | 12629 ac_cv_lib_com_err_com_err=no |
22443 sed 's/^/| /' conftest.$ac_ext >&5 | 12630 fi |
22444 | 12631 rm -f core conftest.err conftest.$ac_objext \ |
22445 ac_cv_lib_com_err_com_err=no | 12632 conftest$ac_exeext conftest.$ac_ext |
22446 fi | |
22447 | |
22448 rm -rf conftest.dSYM | |
22449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22450 conftest$ac_exeext conftest.$ac_ext | |
22451 LIBS=$ac_check_lib_save_LIBS | 12633 LIBS=$ac_check_lib_save_LIBS |
22452 fi | 12634 fi |
22453 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 | 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 |
22454 $as_echo "$ac_cv_lib_com_err_com_err" >&6; } | 12636 $as_echo "$ac_cv_lib_com_err_com_err" >&6; } |
22455 if test $ac_cv_lib_com_err_com_err = yes; then | 12637 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then : |
22456 have_com_err=yes | 12638 have_com_err=yes |
22457 else | 12639 else |
22458 have_com_err=no | 12640 have_com_err=no |
22459 fi | 12641 fi |
22460 | 12642 |
22461 if test $have_com_err = yes; then | 12643 if test $have_com_err = yes; then |
22462 COM_ERRLIB=-lcom_err | 12644 COM_ERRLIB=-lcom_err |
22463 LIBS="$COM_ERRLIB $LIBS" | 12645 LIBS="$COM_ERRLIB $LIBS" |
22464 | 12646 |
22465 cat >>confdefs.h <<\_ACEOF | 12647 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h |
22466 #define HAVE_LIBCOM_ERR 1 | |
22467 _ACEOF | |
22468 | 12648 |
22469 fi | 12649 fi |
22470 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | 12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
22471 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } | 12651 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } |
22472 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | 12652 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then : |
22473 $as_echo_n "(cached) " >&6 | 12653 $as_echo_n "(cached) " >&6 |
22474 else | 12654 else |
22475 ac_check_lib_save_LIBS=$LIBS | 12655 ac_check_lib_save_LIBS=$LIBS |
22476 LIBS="-lcrypto $LIBS" | 12656 LIBS="-lcrypto $LIBS" |
22477 cat >conftest.$ac_ext <<_ACEOF | 12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22478 /* confdefs.h. */ | |
22479 _ACEOF | |
22480 cat confdefs.h >>conftest.$ac_ext | |
22481 cat >>conftest.$ac_ext <<_ACEOF | |
22482 /* end confdefs.h. */ | 12658 /* end confdefs.h. */ |
22483 | 12659 |
22484 /* Override any GCC internal prototype to avoid an error. | 12660 /* Override any GCC internal prototype to avoid an error. |
22485 Use char because int might match the return type of a GCC | 12661 Use char because int might match the return type of a GCC |
22486 builtin and then its argument prototype would still apply. */ | 12662 builtin and then its argument prototype would still apply. */ |
22494 return mit_des_cbc_encrypt (); | 12670 return mit_des_cbc_encrypt (); |
22495 ; | 12671 ; |
22496 return 0; | 12672 return 0; |
22497 } | 12673 } |
22498 _ACEOF | 12674 _ACEOF |
22499 rm -f conftest.$ac_objext conftest$ac_exeext | 12675 if ac_fn_c_try_link "$LINENO"; then : |
22500 if { (ac_try="$ac_link" | |
22501 case "(($ac_try" in | |
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22503 *) ac_try_echo=$ac_try;; | |
22504 esac | |
22505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22506 $as_echo "$ac_try_echo") >&5 | |
22507 (eval "$ac_link") 2>conftest.er1 | |
22508 ac_status=$? | |
22509 grep -v '^ *+' conftest.er1 >conftest.err | |
22510 rm -f conftest.er1 | |
22511 cat conftest.err >&5 | |
22512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22513 (exit $ac_status); } && { | |
22514 test -z "$ac_c_werror_flag" || | |
22515 test ! -s conftest.err | |
22516 } && test -s conftest$ac_exeext && { | |
22517 test "$cross_compiling" = yes || | |
22518 $as_test_x conftest$ac_exeext | |
22519 }; then | |
22520 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | 12676 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes |
22521 else | 12677 else |
22522 $as_echo "$as_me: failed program was:" >&5 | 12678 ac_cv_lib_crypto_mit_des_cbc_encrypt=no |
22523 sed 's/^/| /' conftest.$ac_ext >&5 | 12679 fi |
22524 | 12680 rm -f core conftest.err conftest.$ac_objext \ |
22525 ac_cv_lib_crypto_mit_des_cbc_encrypt=no | 12681 conftest$ac_exeext conftest.$ac_ext |
22526 fi | |
22527 | |
22528 rm -rf conftest.dSYM | |
22529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22530 conftest$ac_exeext conftest.$ac_ext | |
22531 LIBS=$ac_check_lib_save_LIBS | 12682 LIBS=$ac_check_lib_save_LIBS |
22532 fi | 12683 fi |
22533 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 | 12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
22534 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } | 12685 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } |
22535 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | 12686 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then : |
22536 have_crypto=yes | 12687 have_crypto=yes |
22537 else | 12688 else |
22538 have_crypto=no | 12689 have_crypto=no |
22539 fi | 12690 fi |
22540 | 12691 |
22541 if test $have_crypto = yes; then | 12692 if test $have_crypto = yes; then |
22542 CRYPTOLIB=-lcrypto | 12693 CRYPTOLIB=-lcrypto |
22543 LIBS="$CRYPTOLIB $LIBS" | 12694 LIBS="$CRYPTOLIB $LIBS" |
22544 | 12695 |
22545 cat >>confdefs.h <<\_ACEOF | 12696 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h |
22546 #define HAVE_LIBCRYPTO 1 | |
22547 _ACEOF | |
22548 | 12697 |
22549 fi | 12698 fi |
22550 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | 12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
22551 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } | 12700 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } |
22552 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | 12701 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then : |
22553 $as_echo_n "(cached) " >&6 | 12702 $as_echo_n "(cached) " >&6 |
22554 else | 12703 else |
22555 ac_check_lib_save_LIBS=$LIBS | 12704 ac_check_lib_save_LIBS=$LIBS |
22556 LIBS="-lk5crypto $LIBS" | 12705 LIBS="-lk5crypto $LIBS" |
22557 cat >conftest.$ac_ext <<_ACEOF | 12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22558 /* confdefs.h. */ | |
22559 _ACEOF | |
22560 cat confdefs.h >>conftest.$ac_ext | |
22561 cat >>conftest.$ac_ext <<_ACEOF | |
22562 /* end confdefs.h. */ | 12707 /* end confdefs.h. */ |
22563 | 12708 |
22564 /* Override any GCC internal prototype to avoid an error. | 12709 /* Override any GCC internal prototype to avoid an error. |
22565 Use char because int might match the return type of a GCC | 12710 Use char because int might match the return type of a GCC |
22566 builtin and then its argument prototype would still apply. */ | 12711 builtin and then its argument prototype would still apply. */ |
22574 return mit_des_cbc_encrypt (); | 12719 return mit_des_cbc_encrypt (); |
22575 ; | 12720 ; |
22576 return 0; | 12721 return 0; |
22577 } | 12722 } |
22578 _ACEOF | 12723 _ACEOF |
22579 rm -f conftest.$ac_objext conftest$ac_exeext | 12724 if ac_fn_c_try_link "$LINENO"; then : |
22580 if { (ac_try="$ac_link" | |
22581 case "(($ac_try" in | |
22582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22583 *) ac_try_echo=$ac_try;; | |
22584 esac | |
22585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22586 $as_echo "$ac_try_echo") >&5 | |
22587 (eval "$ac_link") 2>conftest.er1 | |
22588 ac_status=$? | |
22589 grep -v '^ *+' conftest.er1 >conftest.err | |
22590 rm -f conftest.er1 | |
22591 cat conftest.err >&5 | |
22592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22593 (exit $ac_status); } && { | |
22594 test -z "$ac_c_werror_flag" || | |
22595 test ! -s conftest.err | |
22596 } && test -s conftest$ac_exeext && { | |
22597 test "$cross_compiling" = yes || | |
22598 $as_test_x conftest$ac_exeext | |
22599 }; then | |
22600 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | 12725 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes |
22601 else | 12726 else |
22602 $as_echo "$as_me: failed program was:" >&5 | 12727 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no |
22603 sed 's/^/| /' conftest.$ac_ext >&5 | 12728 fi |
22604 | 12729 rm -f core conftest.err conftest.$ac_objext \ |
22605 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no | 12730 conftest$ac_exeext conftest.$ac_ext |
22606 fi | |
22607 | |
22608 rm -rf conftest.dSYM | |
22609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22610 conftest$ac_exeext conftest.$ac_ext | |
22611 LIBS=$ac_check_lib_save_LIBS | 12731 LIBS=$ac_check_lib_save_LIBS |
22612 fi | 12732 fi |
22613 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 | 12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
22614 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } | 12734 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } |
22615 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | 12735 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then : |
22616 have_k5crypto=yes | 12736 have_k5crypto=yes |
22617 else | 12737 else |
22618 have_k5crypto=no | 12738 have_k5crypto=no |
22619 fi | 12739 fi |
22620 | 12740 |
22621 if test $have_k5crypto = yes; then | 12741 if test $have_k5crypto = yes; then |
22622 CRYPTOLIB=-lk5crypto | 12742 CRYPTOLIB=-lk5crypto |
22623 LIBS="$CRYPTOLIB $LIBS" | 12743 LIBS="$CRYPTOLIB $LIBS" |
22624 | 12744 |
22625 cat >>confdefs.h <<\_ACEOF | 12745 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h |
22626 #define HAVE_LIBK5CRYPTO 1 | |
22627 _ACEOF | |
22628 | 12746 |
22629 fi | 12747 fi |
22630 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 | 12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 |
22631 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } | 12749 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } |
22632 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | 12750 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then : |
22633 $as_echo_n "(cached) " >&6 | 12751 $as_echo_n "(cached) " >&6 |
22634 else | 12752 else |
22635 ac_check_lib_save_LIBS=$LIBS | 12753 ac_check_lib_save_LIBS=$LIBS |
22636 LIBS="-lkrb5 $LIBS" | 12754 LIBS="-lkrb5 $LIBS" |
22637 cat >conftest.$ac_ext <<_ACEOF | 12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22638 /* confdefs.h. */ | |
22639 _ACEOF | |
22640 cat confdefs.h >>conftest.$ac_ext | |
22641 cat >>conftest.$ac_ext <<_ACEOF | |
22642 /* end confdefs.h. */ | 12756 /* end confdefs.h. */ |
22643 | 12757 |
22644 /* Override any GCC internal prototype to avoid an error. | 12758 /* Override any GCC internal prototype to avoid an error. |
22645 Use char because int might match the return type of a GCC | 12759 Use char because int might match the return type of a GCC |
22646 builtin and then its argument prototype would still apply. */ | 12760 builtin and then its argument prototype would still apply. */ |
22654 return krb5_init_context (); | 12768 return krb5_init_context (); |
22655 ; | 12769 ; |
22656 return 0; | 12770 return 0; |
22657 } | 12771 } |
22658 _ACEOF | 12772 _ACEOF |
22659 rm -f conftest.$ac_objext conftest$ac_exeext | 12773 if ac_fn_c_try_link "$LINENO"; then : |
22660 if { (ac_try="$ac_link" | |
22661 case "(($ac_try" in | |
22662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22663 *) ac_try_echo=$ac_try;; | |
22664 esac | |
22665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22666 $as_echo "$ac_try_echo") >&5 | |
22667 (eval "$ac_link") 2>conftest.er1 | |
22668 ac_status=$? | |
22669 grep -v '^ *+' conftest.er1 >conftest.err | |
22670 rm -f conftest.er1 | |
22671 cat conftest.err >&5 | |
22672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22673 (exit $ac_status); } && { | |
22674 test -z "$ac_c_werror_flag" || | |
22675 test ! -s conftest.err | |
22676 } && test -s conftest$ac_exeext && { | |
22677 test "$cross_compiling" = yes || | |
22678 $as_test_x conftest$ac_exeext | |
22679 }; then | |
22680 ac_cv_lib_krb5_krb5_init_context=yes | 12774 ac_cv_lib_krb5_krb5_init_context=yes |
22681 else | 12775 else |
22682 $as_echo "$as_me: failed program was:" >&5 | 12776 ac_cv_lib_krb5_krb5_init_context=no |
22683 sed 's/^/| /' conftest.$ac_ext >&5 | 12777 fi |
22684 | 12778 rm -f core conftest.err conftest.$ac_objext \ |
22685 ac_cv_lib_krb5_krb5_init_context=no | 12779 conftest$ac_exeext conftest.$ac_ext |
22686 fi | |
22687 | |
22688 rm -rf conftest.dSYM | |
22689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22690 conftest$ac_exeext conftest.$ac_ext | |
22691 LIBS=$ac_check_lib_save_LIBS | 12780 LIBS=$ac_check_lib_save_LIBS |
22692 fi | 12781 fi |
22693 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 | 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
22694 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } | 12783 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } |
22695 if test $ac_cv_lib_krb5_krb5_init_context = yes; then | 12784 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then : |
22696 have_krb5=yes | 12785 have_krb5=yes |
22697 else | 12786 else |
22698 have_krb5=no | 12787 have_krb5=no |
22699 fi | 12788 fi |
22700 | 12789 |
22701 if test $have_krb5=yes; then | 12790 if test $have_krb5=yes; then |
22702 KRB5LIB=-lkrb5 | 12791 KRB5LIB=-lkrb5 |
22703 LIBS="$KRB5LIB $LIBS" | 12792 LIBS="$KRB5LIB $LIBS" |
22704 | 12793 |
22705 cat >>confdefs.h <<\_ACEOF | 12794 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h |
22706 #define HAVE_LIBKRB5 1 | |
22707 _ACEOF | |
22708 | 12795 |
22709 fi | 12796 fi |
22710 if test "${with_kerberos5}" = no; then | 12797 if test "${with_kerberos5}" = no; then |
22711 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 | 12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5 |
22712 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } | 12799 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } |
22713 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | 12800 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then : |
22714 $as_echo_n "(cached) " >&6 | 12801 $as_echo_n "(cached) " >&6 |
22715 else | 12802 else |
22716 ac_check_lib_save_LIBS=$LIBS | 12803 ac_check_lib_save_LIBS=$LIBS |
22717 LIBS="-ldes425 $LIBS" | 12804 LIBS="-ldes425 $LIBS" |
22718 cat >conftest.$ac_ext <<_ACEOF | 12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22719 /* confdefs.h. */ | |
22720 _ACEOF | |
22721 cat confdefs.h >>conftest.$ac_ext | |
22722 cat >>conftest.$ac_ext <<_ACEOF | |
22723 /* end confdefs.h. */ | 12806 /* end confdefs.h. */ |
22724 | 12807 |
22725 /* Override any GCC internal prototype to avoid an error. | 12808 /* Override any GCC internal prototype to avoid an error. |
22726 Use char because int might match the return type of a GCC | 12809 Use char because int might match the return type of a GCC |
22727 builtin and then its argument prototype would still apply. */ | 12810 builtin and then its argument prototype would still apply. */ |
22735 return des_cbc_encrypt (); | 12818 return des_cbc_encrypt (); |
22736 ; | 12819 ; |
22737 return 0; | 12820 return 0; |
22738 } | 12821 } |
22739 _ACEOF | 12822 _ACEOF |
22740 rm -f conftest.$ac_objext conftest$ac_exeext | 12823 if ac_fn_c_try_link "$LINENO"; then : |
22741 if { (ac_try="$ac_link" | |
22742 case "(($ac_try" in | |
22743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22744 *) ac_try_echo=$ac_try;; | |
22745 esac | |
22746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22747 $as_echo "$ac_try_echo") >&5 | |
22748 (eval "$ac_link") 2>conftest.er1 | |
22749 ac_status=$? | |
22750 grep -v '^ *+' conftest.er1 >conftest.err | |
22751 rm -f conftest.er1 | |
22752 cat conftest.err >&5 | |
22753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22754 (exit $ac_status); } && { | |
22755 test -z "$ac_c_werror_flag" || | |
22756 test ! -s conftest.err | |
22757 } && test -s conftest$ac_exeext && { | |
22758 test "$cross_compiling" = yes || | |
22759 $as_test_x conftest$ac_exeext | |
22760 }; then | |
22761 ac_cv_lib_des425_des_cbc_encrypt=yes | 12824 ac_cv_lib_des425_des_cbc_encrypt=yes |
22762 else | 12825 else |
22763 $as_echo "$as_me: failed program was:" >&5 | 12826 ac_cv_lib_des425_des_cbc_encrypt=no |
22764 sed 's/^/| /' conftest.$ac_ext >&5 | 12827 fi |
22765 | 12828 rm -f core conftest.err conftest.$ac_objext \ |
22766 ac_cv_lib_des425_des_cbc_encrypt=no | 12829 conftest$ac_exeext conftest.$ac_ext |
22767 fi | |
22768 | |
22769 rm -rf conftest.dSYM | |
22770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22771 conftest$ac_exeext conftest.$ac_ext | |
22772 LIBS=$ac_check_lib_save_LIBS | 12830 LIBS=$ac_check_lib_save_LIBS |
22773 fi | 12831 fi |
22774 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 | 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
22775 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } | 12833 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } |
22776 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | 12834 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then : |
22777 have_des425=yes | 12835 have_des425=yes |
22778 else | 12836 else |
22779 have_des425=no | 12837 have_des425=no |
22780 fi | 12838 fi |
22781 | 12839 |
22782 if test $have_des425 = yes; then | 12840 if test $have_des425 = yes; then |
22783 DESLIB=-ldes425 | 12841 DESLIB=-ldes425 |
22784 LIBS="$DESLIB $LIBS" | 12842 LIBS="$DESLIB $LIBS" |
22785 | 12843 |
22786 cat >>confdefs.h <<\_ACEOF | 12844 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h |
22787 #define HAVE_LIBDES425 1 | |
22788 _ACEOF | |
22789 | 12845 |
22790 else | 12846 else |
22791 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 | 12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 |
22792 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } | 12848 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } |
22793 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | 12849 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then : |
22794 $as_echo_n "(cached) " >&6 | 12850 $as_echo_n "(cached) " >&6 |
22795 else | 12851 else |
22796 ac_check_lib_save_LIBS=$LIBS | 12852 ac_check_lib_save_LIBS=$LIBS |
22797 LIBS="-ldes $LIBS" | 12853 LIBS="-ldes $LIBS" |
22798 cat >conftest.$ac_ext <<_ACEOF | 12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22799 /* confdefs.h. */ | |
22800 _ACEOF | |
22801 cat confdefs.h >>conftest.$ac_ext | |
22802 cat >>conftest.$ac_ext <<_ACEOF | |
22803 /* end confdefs.h. */ | 12855 /* end confdefs.h. */ |
22804 | 12856 |
22805 /* Override any GCC internal prototype to avoid an error. | 12857 /* Override any GCC internal prototype to avoid an error. |
22806 Use char because int might match the return type of a GCC | 12858 Use char because int might match the return type of a GCC |
22807 builtin and then its argument prototype would still apply. */ | 12859 builtin and then its argument prototype would still apply. */ |
22815 return des_cbc_encrypt (); | 12867 return des_cbc_encrypt (); |
22816 ; | 12868 ; |
22817 return 0; | 12869 return 0; |
22818 } | 12870 } |
22819 _ACEOF | 12871 _ACEOF |
22820 rm -f conftest.$ac_objext conftest$ac_exeext | 12872 if ac_fn_c_try_link "$LINENO"; then : |
22821 if { (ac_try="$ac_link" | |
22822 case "(($ac_try" in | |
22823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22824 *) ac_try_echo=$ac_try;; | |
22825 esac | |
22826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22827 $as_echo "$ac_try_echo") >&5 | |
22828 (eval "$ac_link") 2>conftest.er1 | |
22829 ac_status=$? | |
22830 grep -v '^ *+' conftest.er1 >conftest.err | |
22831 rm -f conftest.er1 | |
22832 cat conftest.err >&5 | |
22833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22834 (exit $ac_status); } && { | |
22835 test -z "$ac_c_werror_flag" || | |
22836 test ! -s conftest.err | |
22837 } && test -s conftest$ac_exeext && { | |
22838 test "$cross_compiling" = yes || | |
22839 $as_test_x conftest$ac_exeext | |
22840 }; then | |
22841 ac_cv_lib_des_des_cbc_encrypt=yes | 12873 ac_cv_lib_des_des_cbc_encrypt=yes |
22842 else | 12874 else |
22843 $as_echo "$as_me: failed program was:" >&5 | 12875 ac_cv_lib_des_des_cbc_encrypt=no |
22844 sed 's/^/| /' conftest.$ac_ext >&5 | 12876 fi |
22845 | 12877 rm -f core conftest.err conftest.$ac_objext \ |
22846 ac_cv_lib_des_des_cbc_encrypt=no | 12878 conftest$ac_exeext conftest.$ac_ext |
22847 fi | |
22848 | |
22849 rm -rf conftest.dSYM | |
22850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22851 conftest$ac_exeext conftest.$ac_ext | |
22852 LIBS=$ac_check_lib_save_LIBS | 12879 LIBS=$ac_check_lib_save_LIBS |
22853 fi | 12880 fi |
22854 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | 12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
22855 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } | 12882 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } |
22856 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | 12883 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then : |
22857 have_des=yes | 12884 have_des=yes |
22858 else | 12885 else |
22859 have_des=no | 12886 have_des=no |
22860 fi | 12887 fi |
22861 | 12888 |
22862 if test $have_des = yes; then | 12889 if test $have_des = yes; then |
22863 DESLIB=-ldes | 12890 DESLIB=-ldes |
22864 LIBS="$DESLIB $LIBS" | 12891 LIBS="$DESLIB $LIBS" |
22865 | 12892 |
22866 cat >>confdefs.h <<\_ACEOF | 12893 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h |
22867 #define HAVE_LIBDES 1 | |
22868 _ACEOF | |
22869 | 12894 |
22870 fi | 12895 fi |
22871 fi | 12896 fi |
22872 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 | 12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5 |
22873 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } | 12898 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } |
22874 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | 12899 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then : |
22875 $as_echo_n "(cached) " >&6 | 12900 $as_echo_n "(cached) " >&6 |
22876 else | 12901 else |
22877 ac_check_lib_save_LIBS=$LIBS | 12902 ac_check_lib_save_LIBS=$LIBS |
22878 LIBS="-lkrb4 $LIBS" | 12903 LIBS="-lkrb4 $LIBS" |
22879 cat >conftest.$ac_ext <<_ACEOF | 12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22880 /* confdefs.h. */ | |
22881 _ACEOF | |
22882 cat confdefs.h >>conftest.$ac_ext | |
22883 cat >>conftest.$ac_ext <<_ACEOF | |
22884 /* end confdefs.h. */ | 12905 /* end confdefs.h. */ |
22885 | 12906 |
22886 /* Override any GCC internal prototype to avoid an error. | 12907 /* Override any GCC internal prototype to avoid an error. |
22887 Use char because int might match the return type of a GCC | 12908 Use char because int might match the return type of a GCC |
22888 builtin and then its argument prototype would still apply. */ | 12909 builtin and then its argument prototype would still apply. */ |
22896 return krb_get_cred (); | 12917 return krb_get_cred (); |
22897 ; | 12918 ; |
22898 return 0; | 12919 return 0; |
22899 } | 12920 } |
22900 _ACEOF | 12921 _ACEOF |
22901 rm -f conftest.$ac_objext conftest$ac_exeext | 12922 if ac_fn_c_try_link "$LINENO"; then : |
22902 if { (ac_try="$ac_link" | |
22903 case "(($ac_try" in | |
22904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22905 *) ac_try_echo=$ac_try;; | |
22906 esac | |
22907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22908 $as_echo "$ac_try_echo") >&5 | |
22909 (eval "$ac_link") 2>conftest.er1 | |
22910 ac_status=$? | |
22911 grep -v '^ *+' conftest.er1 >conftest.err | |
22912 rm -f conftest.er1 | |
22913 cat conftest.err >&5 | |
22914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22915 (exit $ac_status); } && { | |
22916 test -z "$ac_c_werror_flag" || | |
22917 test ! -s conftest.err | |
22918 } && test -s conftest$ac_exeext && { | |
22919 test "$cross_compiling" = yes || | |
22920 $as_test_x conftest$ac_exeext | |
22921 }; then | |
22922 ac_cv_lib_krb4_krb_get_cred=yes | 12923 ac_cv_lib_krb4_krb_get_cred=yes |
22923 else | 12924 else |
22924 $as_echo "$as_me: failed program was:" >&5 | 12925 ac_cv_lib_krb4_krb_get_cred=no |
22925 sed 's/^/| /' conftest.$ac_ext >&5 | 12926 fi |
22926 | 12927 rm -f core conftest.err conftest.$ac_objext \ |
22927 ac_cv_lib_krb4_krb_get_cred=no | 12928 conftest$ac_exeext conftest.$ac_ext |
22928 fi | |
22929 | |
22930 rm -rf conftest.dSYM | |
22931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22932 conftest$ac_exeext conftest.$ac_ext | |
22933 LIBS=$ac_check_lib_save_LIBS | 12929 LIBS=$ac_check_lib_save_LIBS |
22934 fi | 12930 fi |
22935 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 | 12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
22936 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } | 12932 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } |
22937 if test $ac_cv_lib_krb4_krb_get_cred = yes; then | 12933 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then : |
22938 have_krb4=yes | 12934 have_krb4=yes |
22939 else | 12935 else |
22940 have_krb4=no | 12936 have_krb4=no |
22941 fi | 12937 fi |
22942 | 12938 |
22943 if test $have_krb4 = yes; then | 12939 if test $have_krb4 = yes; then |
22944 KRB4LIB=-lkrb4 | 12940 KRB4LIB=-lkrb4 |
22945 LIBS="$KRB4LIB $LIBS" | 12941 LIBS="$KRB4LIB $LIBS" |
22946 | 12942 |
22947 cat >>confdefs.h <<\_ACEOF | 12943 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h |
22948 #define HAVE_LIBKRB4 1 | |
22949 _ACEOF | |
22950 | 12944 |
22951 else | 12945 else |
22952 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 | 12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5 |
22953 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } | 12947 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } |
22954 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | 12948 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then : |
22955 $as_echo_n "(cached) " >&6 | 12949 $as_echo_n "(cached) " >&6 |
22956 else | 12950 else |
22957 ac_check_lib_save_LIBS=$LIBS | 12951 ac_check_lib_save_LIBS=$LIBS |
22958 LIBS="-lkrb $LIBS" | 12952 LIBS="-lkrb $LIBS" |
22959 cat >conftest.$ac_ext <<_ACEOF | 12953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22960 /* confdefs.h. */ | |
22961 _ACEOF | |
22962 cat confdefs.h >>conftest.$ac_ext | |
22963 cat >>conftest.$ac_ext <<_ACEOF | |
22964 /* end confdefs.h. */ | 12954 /* end confdefs.h. */ |
22965 | 12955 |
22966 /* Override any GCC internal prototype to avoid an error. | 12956 /* Override any GCC internal prototype to avoid an error. |
22967 Use char because int might match the return type of a GCC | 12957 Use char because int might match the return type of a GCC |
22968 builtin and then its argument prototype would still apply. */ | 12958 builtin and then its argument prototype would still apply. */ |
22976 return krb_get_cred (); | 12966 return krb_get_cred (); |
22977 ; | 12967 ; |
22978 return 0; | 12968 return 0; |
22979 } | 12969 } |
22980 _ACEOF | 12970 _ACEOF |
22981 rm -f conftest.$ac_objext conftest$ac_exeext | 12971 if ac_fn_c_try_link "$LINENO"; then : |
22982 if { (ac_try="$ac_link" | |
22983 case "(($ac_try" in | |
22984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22985 *) ac_try_echo=$ac_try;; | |
22986 esac | |
22987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22988 $as_echo "$ac_try_echo") >&5 | |
22989 (eval "$ac_link") 2>conftest.er1 | |
22990 ac_status=$? | |
22991 grep -v '^ *+' conftest.er1 >conftest.err | |
22992 rm -f conftest.er1 | |
22993 cat conftest.err >&5 | |
22994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22995 (exit $ac_status); } && { | |
22996 test -z "$ac_c_werror_flag" || | |
22997 test ! -s conftest.err | |
22998 } && test -s conftest$ac_exeext && { | |
22999 test "$cross_compiling" = yes || | |
23000 $as_test_x conftest$ac_exeext | |
23001 }; then | |
23002 ac_cv_lib_krb_krb_get_cred=yes | 12972 ac_cv_lib_krb_krb_get_cred=yes |
23003 else | 12973 else |
23004 $as_echo "$as_me: failed program was:" >&5 | 12974 ac_cv_lib_krb_krb_get_cred=no |
23005 sed 's/^/| /' conftest.$ac_ext >&5 | 12975 fi |
23006 | 12976 rm -f core conftest.err conftest.$ac_objext \ |
23007 ac_cv_lib_krb_krb_get_cred=no | 12977 conftest$ac_exeext conftest.$ac_ext |
23008 fi | |
23009 | |
23010 rm -rf conftest.dSYM | |
23011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
23012 conftest$ac_exeext conftest.$ac_ext | |
23013 LIBS=$ac_check_lib_save_LIBS | 12978 LIBS=$ac_check_lib_save_LIBS |
23014 fi | 12979 fi |
23015 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 | 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
23016 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } | 12981 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } |
23017 if test $ac_cv_lib_krb_krb_get_cred = yes; then | 12982 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then : |
23018 have_krb=yes | 12983 have_krb=yes |
23019 else | 12984 else |
23020 have_krb=no | 12985 have_krb=no |
23021 fi | 12986 fi |
23022 | 12987 |
23023 if test $have_krb = yes; then | 12988 if test $have_krb = yes; then |
23024 KRB4LIB=-lkrb | 12989 KRB4LIB=-lkrb |
23025 LIBS="$KRB4LIB $LIBS" | 12990 LIBS="$KRB4LIB $LIBS" |
23026 | 12991 |
23027 cat >>confdefs.h <<\_ACEOF | 12992 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h |
23028 #define HAVE_LIBKRB 1 | |
23029 _ACEOF | |
23030 | 12993 |
23031 fi | 12994 fi |
23032 fi | 12995 fi |
23033 fi | 12996 fi |
23034 | 12997 |
23035 if test "${with_kerberos5}" != no; then | 12998 if test "${with_kerberos5}" != no; then |
23036 | 12999 for ac_header in krb5.h |
23037 for ac_header in krb5.h | 13000 do : |
23038 do | 13001 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" |
23039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 13002 if test "x$ac_cv_header_krb5_h" = x""yes; then : |
23040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23041 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23042 $as_echo_n "checking for $ac_header... " >&6; } | |
23043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23044 $as_echo_n "(cached) " >&6 | |
23045 fi | |
23046 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23047 $as_echo "$as_val"'` | |
23048 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23049 $as_echo "$ac_res" >&6; } | |
23050 else | |
23051 # Is the header compilable? | |
23052 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23053 $as_echo_n "checking $ac_header usability... " >&6; } | |
23054 cat >conftest.$ac_ext <<_ACEOF | |
23055 /* confdefs.h. */ | |
23056 _ACEOF | |
23057 cat confdefs.h >>conftest.$ac_ext | |
23058 cat >>conftest.$ac_ext <<_ACEOF | |
23059 /* end confdefs.h. */ | |
23060 $ac_includes_default | |
23061 #include <$ac_header> | |
23062 _ACEOF | |
23063 rm -f conftest.$ac_objext | |
23064 if { (ac_try="$ac_compile" | |
23065 case "(($ac_try" in | |
23066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23067 *) ac_try_echo=$ac_try;; | |
23068 esac | |
23069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23070 $as_echo "$ac_try_echo") >&5 | |
23071 (eval "$ac_compile") 2>conftest.er1 | |
23072 ac_status=$? | |
23073 grep -v '^ *+' conftest.er1 >conftest.err | |
23074 rm -f conftest.er1 | |
23075 cat conftest.err >&5 | |
23076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23077 (exit $ac_status); } && { | |
23078 test -z "$ac_c_werror_flag" || | |
23079 test ! -s conftest.err | |
23080 } && test -s conftest.$ac_objext; then | |
23081 ac_header_compiler=yes | |
23082 else | |
23083 $as_echo "$as_me: failed program was:" >&5 | |
23084 sed 's/^/| /' conftest.$ac_ext >&5 | |
23085 | |
23086 ac_header_compiler=no | |
23087 fi | |
23088 | |
23089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23090 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23091 $as_echo "$ac_header_compiler" >&6; } | |
23092 | |
23093 # Is the header present? | |
23094 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23095 $as_echo_n "checking $ac_header presence... " >&6; } | |
23096 cat >conftest.$ac_ext <<_ACEOF | |
23097 /* confdefs.h. */ | |
23098 _ACEOF | |
23099 cat confdefs.h >>conftest.$ac_ext | |
23100 cat >>conftest.$ac_ext <<_ACEOF | |
23101 /* end confdefs.h. */ | |
23102 #include <$ac_header> | |
23103 _ACEOF | |
23104 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
23105 case "(($ac_try" in | |
23106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23107 *) ac_try_echo=$ac_try;; | |
23108 esac | |
23109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23110 $as_echo "$ac_try_echo") >&5 | |
23111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23112 ac_status=$? | |
23113 grep -v '^ *+' conftest.er1 >conftest.err | |
23114 rm -f conftest.er1 | |
23115 cat conftest.err >&5 | |
23116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23117 (exit $ac_status); } >/dev/null && { | |
23118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23119 test ! -s conftest.err | |
23120 }; then | |
23121 ac_header_preproc=yes | |
23122 else | |
23123 $as_echo "$as_me: failed program was:" >&5 | |
23124 sed 's/^/| /' conftest.$ac_ext >&5 | |
23125 | |
23126 ac_header_preproc=no | |
23127 fi | |
23128 | |
23129 rm -f conftest.err conftest.$ac_ext | |
23130 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23131 $as_echo "$ac_header_preproc" >&6; } | |
23132 | |
23133 # So? What about this header? | |
23134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23135 yes:no: ) | |
23136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23137 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23140 ac_header_preproc=yes | |
23141 ;; | |
23142 no:yes:* ) | |
23143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23144 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23146 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23148 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23150 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23152 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23154 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
23155 | |
23156 ;; | |
23157 esac | |
23158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23159 $as_echo_n "checking for $ac_header... " >&6; } | |
23160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23161 $as_echo_n "(cached) " >&6 | |
23162 else | |
23163 eval "$as_ac_Header=\$ac_header_preproc" | |
23164 fi | |
23165 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23166 $as_echo "$as_val"'` | |
23167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23168 $as_echo "$ac_res" >&6; } | |
23169 | |
23170 fi | |
23171 if test `eval 'as_val=${'$as_ac_Header'} | |
23172 $as_echo "$as_val"'` = yes; then | |
23173 cat >>confdefs.h <<_ACEOF | 13003 cat >>confdefs.h <<_ACEOF |
23174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 13004 #define HAVE_KRB5_H 1 |
23175 _ACEOF | 13005 _ACEOF |
23176 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5 | 13006 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h> |
23177 $as_echo_n "checking for krb5_error.text... " >&6; } | 13007 " |
23178 if test "${ac_cv_member_krb5_error_text+set}" = set; then | 13008 if test "x$ac_cv_member_krb5_error_text" = x""yes; then : |
23179 $as_echo_n "(cached) " >&6 | |
23180 else | |
23181 cat >conftest.$ac_ext <<_ACEOF | |
23182 /* confdefs.h. */ | |
23183 _ACEOF | |
23184 cat confdefs.h >>conftest.$ac_ext | |
23185 cat >>conftest.$ac_ext <<_ACEOF | |
23186 /* end confdefs.h. */ | |
23187 #include <krb5.h> | |
23188 | |
23189 int | |
23190 main () | |
23191 { | |
23192 static krb5_error ac_aggr; | |
23193 if (ac_aggr.text) | |
23194 return 0; | |
23195 ; | |
23196 return 0; | |
23197 } | |
23198 _ACEOF | |
23199 rm -f conftest.$ac_objext | |
23200 if { (ac_try="$ac_compile" | |
23201 case "(($ac_try" in | |
23202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23203 *) ac_try_echo=$ac_try;; | |
23204 esac | |
23205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23206 $as_echo "$ac_try_echo") >&5 | |
23207 (eval "$ac_compile") 2>conftest.er1 | |
23208 ac_status=$? | |
23209 grep -v '^ *+' conftest.er1 >conftest.err | |
23210 rm -f conftest.er1 | |
23211 cat conftest.err >&5 | |
23212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23213 (exit $ac_status); } && { | |
23214 test -z "$ac_c_werror_flag" || | |
23215 test ! -s conftest.err | |
23216 } && test -s conftest.$ac_objext; then | |
23217 ac_cv_member_krb5_error_text=yes | |
23218 else | |
23219 $as_echo "$as_me: failed program was:" >&5 | |
23220 sed 's/^/| /' conftest.$ac_ext >&5 | |
23221 | |
23222 cat >conftest.$ac_ext <<_ACEOF | |
23223 /* confdefs.h. */ | |
23224 _ACEOF | |
23225 cat confdefs.h >>conftest.$ac_ext | |
23226 cat >>conftest.$ac_ext <<_ACEOF | |
23227 /* end confdefs.h. */ | |
23228 #include <krb5.h> | |
23229 | |
23230 int | |
23231 main () | |
23232 { | |
23233 static krb5_error ac_aggr; | |
23234 if (sizeof ac_aggr.text) | |
23235 return 0; | |
23236 ; | |
23237 return 0; | |
23238 } | |
23239 _ACEOF | |
23240 rm -f conftest.$ac_objext | |
23241 if { (ac_try="$ac_compile" | |
23242 case "(($ac_try" in | |
23243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23244 *) ac_try_echo=$ac_try;; | |
23245 esac | |
23246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23247 $as_echo "$ac_try_echo") >&5 | |
23248 (eval "$ac_compile") 2>conftest.er1 | |
23249 ac_status=$? | |
23250 grep -v '^ *+' conftest.er1 >conftest.err | |
23251 rm -f conftest.er1 | |
23252 cat conftest.err >&5 | |
23253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23254 (exit $ac_status); } && { | |
23255 test -z "$ac_c_werror_flag" || | |
23256 test ! -s conftest.err | |
23257 } && test -s conftest.$ac_objext; then | |
23258 ac_cv_member_krb5_error_text=yes | |
23259 else | |
23260 $as_echo "$as_me: failed program was:" >&5 | |
23261 sed 's/^/| /' conftest.$ac_ext >&5 | |
23262 | |
23263 ac_cv_member_krb5_error_text=no | |
23264 fi | |
23265 | |
23266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23267 fi | |
23268 | |
23269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23270 fi | |
23271 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5 | |
23272 $as_echo "$ac_cv_member_krb5_error_text" >&6; } | |
23273 if test $ac_cv_member_krb5_error_text = yes; then | |
23274 | 13009 |
23275 cat >>confdefs.h <<_ACEOF | 13010 cat >>confdefs.h <<_ACEOF |
23276 #define HAVE_KRB5_ERROR_TEXT 1 | 13011 #define HAVE_KRB5_ERROR_TEXT 1 |
23277 _ACEOF | 13012 _ACEOF |
23278 | 13013 |
23279 | 13014 |
23280 fi | 13015 fi |
23281 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5 | 13016 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h> |
23282 $as_echo_n "checking for krb5_error.e_text... " >&6; } | 13017 " |
23283 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then | 13018 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then : |
23284 $as_echo_n "(cached) " >&6 | |
23285 else | |
23286 cat >conftest.$ac_ext <<_ACEOF | |
23287 /* confdefs.h. */ | |
23288 _ACEOF | |
23289 cat confdefs.h >>conftest.$ac_ext | |
23290 cat >>conftest.$ac_ext <<_ACEOF | |
23291 /* end confdefs.h. */ | |
23292 #include <krb5.h> | |
23293 | |
23294 int | |
23295 main () | |
23296 { | |
23297 static krb5_error ac_aggr; | |
23298 if (ac_aggr.e_text) | |
23299 return 0; | |
23300 ; | |
23301 return 0; | |
23302 } | |
23303 _ACEOF | |
23304 rm -f conftest.$ac_objext | |
23305 if { (ac_try="$ac_compile" | |
23306 case "(($ac_try" in | |
23307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23308 *) ac_try_echo=$ac_try;; | |
23309 esac | |
23310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23311 $as_echo "$ac_try_echo") >&5 | |
23312 (eval "$ac_compile") 2>conftest.er1 | |
23313 ac_status=$? | |
23314 grep -v '^ *+' conftest.er1 >conftest.err | |
23315 rm -f conftest.er1 | |
23316 cat conftest.err >&5 | |
23317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23318 (exit $ac_status); } && { | |
23319 test -z "$ac_c_werror_flag" || | |
23320 test ! -s conftest.err | |
23321 } && test -s conftest.$ac_objext; then | |
23322 ac_cv_member_krb5_error_e_text=yes | |
23323 else | |
23324 $as_echo "$as_me: failed program was:" >&5 | |
23325 sed 's/^/| /' conftest.$ac_ext >&5 | |
23326 | |
23327 cat >conftest.$ac_ext <<_ACEOF | |
23328 /* confdefs.h. */ | |
23329 _ACEOF | |
23330 cat confdefs.h >>conftest.$ac_ext | |
23331 cat >>conftest.$ac_ext <<_ACEOF | |
23332 /* end confdefs.h. */ | |
23333 #include <krb5.h> | |
23334 | |
23335 int | |
23336 main () | |
23337 { | |
23338 static krb5_error ac_aggr; | |
23339 if (sizeof ac_aggr.e_text) | |
23340 return 0; | |
23341 ; | |
23342 return 0; | |
23343 } | |
23344 _ACEOF | |
23345 rm -f conftest.$ac_objext | |
23346 if { (ac_try="$ac_compile" | |
23347 case "(($ac_try" in | |
23348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23349 *) ac_try_echo=$ac_try;; | |
23350 esac | |
23351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23352 $as_echo "$ac_try_echo") >&5 | |
23353 (eval "$ac_compile") 2>conftest.er1 | |
23354 ac_status=$? | |
23355 grep -v '^ *+' conftest.er1 >conftest.err | |
23356 rm -f conftest.er1 | |
23357 cat conftest.err >&5 | |
23358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23359 (exit $ac_status); } && { | |
23360 test -z "$ac_c_werror_flag" || | |
23361 test ! -s conftest.err | |
23362 } && test -s conftest.$ac_objext; then | |
23363 ac_cv_member_krb5_error_e_text=yes | |
23364 else | |
23365 $as_echo "$as_me: failed program was:" >&5 | |
23366 sed 's/^/| /' conftest.$ac_ext >&5 | |
23367 | |
23368 ac_cv_member_krb5_error_e_text=no | |
23369 fi | |
23370 | |
23371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23372 fi | |
23373 | |
23374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23375 fi | |
23376 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5 | |
23377 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; } | |
23378 if test $ac_cv_member_krb5_error_e_text = yes; then | |
23379 | 13019 |
23380 cat >>confdefs.h <<_ACEOF | 13020 cat >>confdefs.h <<_ACEOF |
23381 #define HAVE_KRB5_ERROR_E_TEXT 1 | 13021 #define HAVE_KRB5_ERROR_E_TEXT 1 |
23382 _ACEOF | 13022 _ACEOF |
23383 | 13023 |
23387 fi | 13027 fi |
23388 | 13028 |
23389 done | 13029 done |
23390 | 13030 |
23391 else | 13031 else |
23392 | 13032 for ac_header in des.h |
23393 for ac_header in des.h | 13033 do : |
23394 do | 13034 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" |
23395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 13035 if test "x$ac_cv_header_des_h" = x""yes; then : |
23396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23398 $as_echo_n "checking for $ac_header... " >&6; } | |
23399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23400 $as_echo_n "(cached) " >&6 | |
23401 fi | |
23402 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23403 $as_echo "$as_val"'` | |
23404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23405 $as_echo "$ac_res" >&6; } | |
23406 else | |
23407 # Is the header compilable? | |
23408 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23409 $as_echo_n "checking $ac_header usability... " >&6; } | |
23410 cat >conftest.$ac_ext <<_ACEOF | |
23411 /* confdefs.h. */ | |
23412 _ACEOF | |
23413 cat confdefs.h >>conftest.$ac_ext | |
23414 cat >>conftest.$ac_ext <<_ACEOF | |
23415 /* end confdefs.h. */ | |
23416 $ac_includes_default | |
23417 #include <$ac_header> | |
23418 _ACEOF | |
23419 rm -f conftest.$ac_objext | |
23420 if { (ac_try="$ac_compile" | |
23421 case "(($ac_try" in | |
23422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23423 *) ac_try_echo=$ac_try;; | |
23424 esac | |
23425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23426 $as_echo "$ac_try_echo") >&5 | |
23427 (eval "$ac_compile") 2>conftest.er1 | |
23428 ac_status=$? | |
23429 grep -v '^ *+' conftest.er1 >conftest.err | |
23430 rm -f conftest.er1 | |
23431 cat conftest.err >&5 | |
23432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23433 (exit $ac_status); } && { | |
23434 test -z "$ac_c_werror_flag" || | |
23435 test ! -s conftest.err | |
23436 } && test -s conftest.$ac_objext; then | |
23437 ac_header_compiler=yes | |
23438 else | |
23439 $as_echo "$as_me: failed program was:" >&5 | |
23440 sed 's/^/| /' conftest.$ac_ext >&5 | |
23441 | |
23442 ac_header_compiler=no | |
23443 fi | |
23444 | |
23445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23446 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23447 $as_echo "$ac_header_compiler" >&6; } | |
23448 | |
23449 # Is the header present? | |
23450 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23451 $as_echo_n "checking $ac_header presence... " >&6; } | |
23452 cat >conftest.$ac_ext <<_ACEOF | |
23453 /* confdefs.h. */ | |
23454 _ACEOF | |
23455 cat confdefs.h >>conftest.$ac_ext | |
23456 cat >>conftest.$ac_ext <<_ACEOF | |
23457 /* end confdefs.h. */ | |
23458 #include <$ac_header> | |
23459 _ACEOF | |
23460 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
23461 case "(($ac_try" in | |
23462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23463 *) ac_try_echo=$ac_try;; | |
23464 esac | |
23465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23466 $as_echo "$ac_try_echo") >&5 | |
23467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23468 ac_status=$? | |
23469 grep -v '^ *+' conftest.er1 >conftest.err | |
23470 rm -f conftest.er1 | |
23471 cat conftest.err >&5 | |
23472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23473 (exit $ac_status); } >/dev/null && { | |
23474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23475 test ! -s conftest.err | |
23476 }; then | |
23477 ac_header_preproc=yes | |
23478 else | |
23479 $as_echo "$as_me: failed program was:" >&5 | |
23480 sed 's/^/| /' conftest.$ac_ext >&5 | |
23481 | |
23482 ac_header_preproc=no | |
23483 fi | |
23484 | |
23485 rm -f conftest.err conftest.$ac_ext | |
23486 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23487 $as_echo "$ac_header_preproc" >&6; } | |
23488 | |
23489 # So? What about this header? | |
23490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23491 yes:no: ) | |
23492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23493 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23496 ac_header_preproc=yes | |
23497 ;; | |
23498 no:yes:* ) | |
23499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23500 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23502 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23504 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23506 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23508 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23510 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
23511 | |
23512 ;; | |
23513 esac | |
23514 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23515 $as_echo_n "checking for $ac_header... " >&6; } | |
23516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23517 $as_echo_n "(cached) " >&6 | |
23518 else | |
23519 eval "$as_ac_Header=\$ac_header_preproc" | |
23520 fi | |
23521 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23522 $as_echo "$as_val"'` | |
23523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23524 $as_echo "$ac_res" >&6; } | |
23525 | |
23526 fi | |
23527 if test `eval 'as_val=${'$as_ac_Header'} | |
23528 $as_echo "$as_val"'` = yes; then | |
23529 cat >>confdefs.h <<_ACEOF | 13036 cat >>confdefs.h <<_ACEOF |
23530 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 13037 #define HAVE_DES_H 1 |
23531 _ACEOF | 13038 _ACEOF |
23532 | 13039 |
23533 else | 13040 else |
23534 | 13041 for ac_header in kerberosIV/des.h |
23535 for ac_header in kerberosIV/des.h | 13042 do : |
23536 do | 13043 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default" |
23537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 13044 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then : |
23538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23539 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23540 $as_echo_n "checking for $ac_header... " >&6; } | |
23541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23542 $as_echo_n "(cached) " >&6 | |
23543 fi | |
23544 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23545 $as_echo "$as_val"'` | |
23546 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23547 $as_echo "$ac_res" >&6; } | |
23548 else | |
23549 # Is the header compilable? | |
23550 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23551 $as_echo_n "checking $ac_header usability... " >&6; } | |
23552 cat >conftest.$ac_ext <<_ACEOF | |
23553 /* confdefs.h. */ | |
23554 _ACEOF | |
23555 cat confdefs.h >>conftest.$ac_ext | |
23556 cat >>conftest.$ac_ext <<_ACEOF | |
23557 /* end confdefs.h. */ | |
23558 $ac_includes_default | |
23559 #include <$ac_header> | |
23560 _ACEOF | |
23561 rm -f conftest.$ac_objext | |
23562 if { (ac_try="$ac_compile" | |
23563 case "(($ac_try" in | |
23564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23565 *) ac_try_echo=$ac_try;; | |
23566 esac | |
23567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23568 $as_echo "$ac_try_echo") >&5 | |
23569 (eval "$ac_compile") 2>conftest.er1 | |
23570 ac_status=$? | |
23571 grep -v '^ *+' conftest.er1 >conftest.err | |
23572 rm -f conftest.er1 | |
23573 cat conftest.err >&5 | |
23574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23575 (exit $ac_status); } && { | |
23576 test -z "$ac_c_werror_flag" || | |
23577 test ! -s conftest.err | |
23578 } && test -s conftest.$ac_objext; then | |
23579 ac_header_compiler=yes | |
23580 else | |
23581 $as_echo "$as_me: failed program was:" >&5 | |
23582 sed 's/^/| /' conftest.$ac_ext >&5 | |
23583 | |
23584 ac_header_compiler=no | |
23585 fi | |
23586 | |
23587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23588 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23589 $as_echo "$ac_header_compiler" >&6; } | |
23590 | |
23591 # Is the header present? | |
23592 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23593 $as_echo_n "checking $ac_header presence... " >&6; } | |
23594 cat >conftest.$ac_ext <<_ACEOF | |
23595 /* confdefs.h. */ | |
23596 _ACEOF | |
23597 cat confdefs.h >>conftest.$ac_ext | |
23598 cat >>conftest.$ac_ext <<_ACEOF | |
23599 /* end confdefs.h. */ | |
23600 #include <$ac_header> | |
23601 _ACEOF | |
23602 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
23603 case "(($ac_try" in | |
23604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23605 *) ac_try_echo=$ac_try;; | |
23606 esac | |
23607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23608 $as_echo "$ac_try_echo") >&5 | |
23609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23610 ac_status=$? | |
23611 grep -v '^ *+' conftest.er1 >conftest.err | |
23612 rm -f conftest.er1 | |
23613 cat conftest.err >&5 | |
23614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23615 (exit $ac_status); } >/dev/null && { | |
23616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23617 test ! -s conftest.err | |
23618 }; then | |
23619 ac_header_preproc=yes | |
23620 else | |
23621 $as_echo "$as_me: failed program was:" >&5 | |
23622 sed 's/^/| /' conftest.$ac_ext >&5 | |
23623 | |
23624 ac_header_preproc=no | |
23625 fi | |
23626 | |
23627 rm -f conftest.err conftest.$ac_ext | |
23628 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23629 $as_echo "$ac_header_preproc" >&6; } | |
23630 | |
23631 # So? What about this header? | |
23632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23633 yes:no: ) | |
23634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23635 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23637 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23638 ac_header_preproc=yes | |
23639 ;; | |
23640 no:yes:* ) | |
23641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23642 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23644 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23646 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23648 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23650 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23652 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
23653 | |
23654 ;; | |
23655 esac | |
23656 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23657 $as_echo_n "checking for $ac_header... " >&6; } | |
23658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23659 $as_echo_n "(cached) " >&6 | |
23660 else | |
23661 eval "$as_ac_Header=\$ac_header_preproc" | |
23662 fi | |
23663 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23664 $as_echo "$as_val"'` | |
23665 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23666 $as_echo "$ac_res" >&6; } | |
23667 | |
23668 fi | |
23669 if test `eval 'as_val=${'$as_ac_Header'} | |
23670 $as_echo "$as_val"'` = yes; then | |
23671 cat >>confdefs.h <<_ACEOF | 13045 cat >>confdefs.h <<_ACEOF |
23672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 13046 #define HAVE_KERBEROSIV_DES_H 1 |
23673 _ACEOF | 13047 _ACEOF |
23674 | 13048 |
23675 else | 13049 else |
23676 | 13050 for ac_header in kerberos/des.h |
23677 for ac_header in kerberos/des.h | 13051 do : |
23678 do | 13052 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default" |
23679 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 13053 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then : |
23680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23682 $as_echo_n "checking for $ac_header... " >&6; } | |
23683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23684 $as_echo_n "(cached) " >&6 | |
23685 fi | |
23686 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23687 $as_echo "$as_val"'` | |
23688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23689 $as_echo "$ac_res" >&6; } | |
23690 else | |
23691 # Is the header compilable? | |
23692 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23693 $as_echo_n "checking $ac_header usability... " >&6; } | |
23694 cat >conftest.$ac_ext <<_ACEOF | |
23695 /* confdefs.h. */ | |
23696 _ACEOF | |
23697 cat confdefs.h >>conftest.$ac_ext | |
23698 cat >>conftest.$ac_ext <<_ACEOF | |
23699 /* end confdefs.h. */ | |
23700 $ac_includes_default | |
23701 #include <$ac_header> | |
23702 _ACEOF | |
23703 rm -f conftest.$ac_objext | |
23704 if { (ac_try="$ac_compile" | |
23705 case "(($ac_try" in | |
23706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23707 *) ac_try_echo=$ac_try;; | |
23708 esac | |
23709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23710 $as_echo "$ac_try_echo") >&5 | |
23711 (eval "$ac_compile") 2>conftest.er1 | |
23712 ac_status=$? | |
23713 grep -v '^ *+' conftest.er1 >conftest.err | |
23714 rm -f conftest.er1 | |
23715 cat conftest.err >&5 | |
23716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23717 (exit $ac_status); } && { | |
23718 test -z "$ac_c_werror_flag" || | |
23719 test ! -s conftest.err | |
23720 } && test -s conftest.$ac_objext; then | |
23721 ac_header_compiler=yes | |
23722 else | |
23723 $as_echo "$as_me: failed program was:" >&5 | |
23724 sed 's/^/| /' conftest.$ac_ext >&5 | |
23725 | |
23726 ac_header_compiler=no | |
23727 fi | |
23728 | |
23729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23731 $as_echo "$ac_header_compiler" >&6; } | |
23732 | |
23733 # Is the header present? | |
23734 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23735 $as_echo_n "checking $ac_header presence... " >&6; } | |
23736 cat >conftest.$ac_ext <<_ACEOF | |
23737 /* confdefs.h. */ | |
23738 _ACEOF | |
23739 cat confdefs.h >>conftest.$ac_ext | |
23740 cat >>conftest.$ac_ext <<_ACEOF | |
23741 /* end confdefs.h. */ | |
23742 #include <$ac_header> | |
23743 _ACEOF | |
23744 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
23745 case "(($ac_try" in | |
23746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23747 *) ac_try_echo=$ac_try;; | |
23748 esac | |
23749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23750 $as_echo "$ac_try_echo") >&5 | |
23751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23752 ac_status=$? | |
23753 grep -v '^ *+' conftest.er1 >conftest.err | |
23754 rm -f conftest.er1 | |
23755 cat conftest.err >&5 | |
23756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23757 (exit $ac_status); } >/dev/null && { | |
23758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23759 test ! -s conftest.err | |
23760 }; then | |
23761 ac_header_preproc=yes | |
23762 else | |
23763 $as_echo "$as_me: failed program was:" >&5 | |
23764 sed 's/^/| /' conftest.$ac_ext >&5 | |
23765 | |
23766 ac_header_preproc=no | |
23767 fi | |
23768 | |
23769 rm -f conftest.err conftest.$ac_ext | |
23770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23771 $as_echo "$ac_header_preproc" >&6; } | |
23772 | |
23773 # So? What about this header? | |
23774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23775 yes:no: ) | |
23776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23777 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23780 ac_header_preproc=yes | |
23781 ;; | |
23782 no:yes:* ) | |
23783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23784 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23786 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23788 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23790 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23794 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
23795 | |
23796 ;; | |
23797 esac | |
23798 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23799 $as_echo_n "checking for $ac_header... " >&6; } | |
23800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23801 $as_echo_n "(cached) " >&6 | |
23802 else | |
23803 eval "$as_ac_Header=\$ac_header_preproc" | |
23804 fi | |
23805 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23806 $as_echo "$as_val"'` | |
23807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23808 $as_echo "$ac_res" >&6; } | |
23809 | |
23810 fi | |
23811 if test `eval 'as_val=${'$as_ac_Header'} | |
23812 $as_echo "$as_val"'` = yes; then | |
23813 cat >>confdefs.h <<_ACEOF | 13054 cat >>confdefs.h <<_ACEOF |
23814 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 13055 #define HAVE_KERBEROS_DES_H 1 |
23815 _ACEOF | 13056 _ACEOF |
23816 | 13057 |
23817 fi | 13058 fi |
23818 | 13059 |
23819 done | 13060 done |
23824 | 13065 |
23825 fi | 13066 fi |
23826 | 13067 |
23827 done | 13068 done |
23828 | 13069 |
23829 | 13070 for ac_header in krb.h |
23830 for ac_header in krb.h | 13071 do : |
23831 do | 13072 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" |
23832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 13073 if test "x$ac_cv_header_krb_h" = x""yes; then : |
23833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23834 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23835 $as_echo_n "checking for $ac_header... " >&6; } | |
23836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23837 $as_echo_n "(cached) " >&6 | |
23838 fi | |
23839 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23840 $as_echo "$as_val"'` | |
23841 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23842 $as_echo "$ac_res" >&6; } | |
23843 else | |
23844 # Is the header compilable? | |
23845 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23846 $as_echo_n "checking $ac_header usability... " >&6; } | |
23847 cat >conftest.$ac_ext <<_ACEOF | |
23848 /* confdefs.h. */ | |
23849 _ACEOF | |
23850 cat confdefs.h >>conftest.$ac_ext | |
23851 cat >>conftest.$ac_ext <<_ACEOF | |
23852 /* end confdefs.h. */ | |
23853 $ac_includes_default | |
23854 #include <$ac_header> | |
23855 _ACEOF | |
23856 rm -f conftest.$ac_objext | |
23857 if { (ac_try="$ac_compile" | |
23858 case "(($ac_try" in | |
23859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23860 *) ac_try_echo=$ac_try;; | |
23861 esac | |
23862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23863 $as_echo "$ac_try_echo") >&5 | |
23864 (eval "$ac_compile") 2>conftest.er1 | |
23865 ac_status=$? | |
23866 grep -v '^ *+' conftest.er1 >conftest.err | |
23867 rm -f conftest.er1 | |
23868 cat conftest.err >&5 | |
23869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23870 (exit $ac_status); } && { | |
23871 test -z "$ac_c_werror_flag" || | |
23872 test ! -s conftest.err | |
23873 } && test -s conftest.$ac_objext; then | |
23874 ac_header_compiler=yes | |
23875 else | |
23876 $as_echo "$as_me: failed program was:" >&5 | |
23877 sed 's/^/| /' conftest.$ac_ext >&5 | |
23878 | |
23879 ac_header_compiler=no | |
23880 fi | |
23881 | |
23882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23883 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23884 $as_echo "$ac_header_compiler" >&6; } | |
23885 | |
23886 # Is the header present? | |
23887 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23888 $as_echo_n "checking $ac_header presence... " >&6; } | |
23889 cat >conftest.$ac_ext <<_ACEOF | |
23890 /* confdefs.h. */ | |
23891 _ACEOF | |
23892 cat confdefs.h >>conftest.$ac_ext | |
23893 cat >>conftest.$ac_ext <<_ACEOF | |
23894 /* end confdefs.h. */ | |
23895 #include <$ac_header> | |
23896 _ACEOF | |
23897 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
23898 case "(($ac_try" in | |
23899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23900 *) ac_try_echo=$ac_try;; | |
23901 esac | |
23902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23903 $as_echo "$ac_try_echo") >&5 | |
23904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23905 ac_status=$? | |
23906 grep -v '^ *+' conftest.er1 >conftest.err | |
23907 rm -f conftest.er1 | |
23908 cat conftest.err >&5 | |
23909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23910 (exit $ac_status); } >/dev/null && { | |
23911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23912 test ! -s conftest.err | |
23913 }; then | |
23914 ac_header_preproc=yes | |
23915 else | |
23916 $as_echo "$as_me: failed program was:" >&5 | |
23917 sed 's/^/| /' conftest.$ac_ext >&5 | |
23918 | |
23919 ac_header_preproc=no | |
23920 fi | |
23921 | |
23922 rm -f conftest.err conftest.$ac_ext | |
23923 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23924 $as_echo "$ac_header_preproc" >&6; } | |
23925 | |
23926 # So? What about this header? | |
23927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23928 yes:no: ) | |
23929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23930 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23933 ac_header_preproc=yes | |
23934 ;; | |
23935 no:yes:* ) | |
23936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23937 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23939 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23941 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23943 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23945 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23947 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
23948 | |
23949 ;; | |
23950 esac | |
23951 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23952 $as_echo_n "checking for $ac_header... " >&6; } | |
23953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23954 $as_echo_n "(cached) " >&6 | |
23955 else | |
23956 eval "$as_ac_Header=\$ac_header_preproc" | |
23957 fi | |
23958 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23959 $as_echo "$as_val"'` | |
23960 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23961 $as_echo "$ac_res" >&6; } | |
23962 | |
23963 fi | |
23964 if test `eval 'as_val=${'$as_ac_Header'} | |
23965 $as_echo "$as_val"'` = yes; then | |
23966 cat >>confdefs.h <<_ACEOF | 13074 cat >>confdefs.h <<_ACEOF |
23967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 13075 #define HAVE_KRB_H 1 |
23968 _ACEOF | 13076 _ACEOF |
23969 | 13077 |
23970 else | 13078 else |
23971 | 13079 for ac_header in kerberosIV/krb.h |
23972 for ac_header in kerberosIV/krb.h | 13080 do : |
23973 do | 13081 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default" |
23974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 13082 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then : |
23975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23976 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23977 $as_echo_n "checking for $ac_header... " >&6; } | |
23978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23979 $as_echo_n "(cached) " >&6 | |
23980 fi | |
23981 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23982 $as_echo "$as_val"'` | |
23983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23984 $as_echo "$ac_res" >&6; } | |
23985 else | |
23986 # Is the header compilable? | |
23987 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23988 $as_echo_n "checking $ac_header usability... " >&6; } | |
23989 cat >conftest.$ac_ext <<_ACEOF | |
23990 /* confdefs.h. */ | |
23991 _ACEOF | |
23992 cat confdefs.h >>conftest.$ac_ext | |
23993 cat >>conftest.$ac_ext <<_ACEOF | |
23994 /* end confdefs.h. */ | |
23995 $ac_includes_default | |
23996 #include <$ac_header> | |
23997 _ACEOF | |
23998 rm -f conftest.$ac_objext | |
23999 if { (ac_try="$ac_compile" | |
24000 case "(($ac_try" in | |
24001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24002 *) ac_try_echo=$ac_try;; | |
24003 esac | |
24004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24005 $as_echo "$ac_try_echo") >&5 | |
24006 (eval "$ac_compile") 2>conftest.er1 | |
24007 ac_status=$? | |
24008 grep -v '^ *+' conftest.er1 >conftest.err | |
24009 rm -f conftest.er1 | |
24010 cat conftest.err >&5 | |
24011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24012 (exit $ac_status); } && { | |
24013 test -z "$ac_c_werror_flag" || | |
24014 test ! -s conftest.err | |
24015 } && test -s conftest.$ac_objext; then | |
24016 ac_header_compiler=yes | |
24017 else | |
24018 $as_echo "$as_me: failed program was:" >&5 | |
24019 sed 's/^/| /' conftest.$ac_ext >&5 | |
24020 | |
24021 ac_header_compiler=no | |
24022 fi | |
24023 | |
24024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24025 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24026 $as_echo "$ac_header_compiler" >&6; } | |
24027 | |
24028 # Is the header present? | |
24029 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24030 $as_echo_n "checking $ac_header presence... " >&6; } | |
24031 cat >conftest.$ac_ext <<_ACEOF | |
24032 /* confdefs.h. */ | |
24033 _ACEOF | |
24034 cat confdefs.h >>conftest.$ac_ext | |
24035 cat >>conftest.$ac_ext <<_ACEOF | |
24036 /* end confdefs.h. */ | |
24037 #include <$ac_header> | |
24038 _ACEOF | |
24039 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
24040 case "(($ac_try" in | |
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24042 *) ac_try_echo=$ac_try;; | |
24043 esac | |
24044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24045 $as_echo "$ac_try_echo") >&5 | |
24046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
24047 ac_status=$? | |
24048 grep -v '^ *+' conftest.er1 >conftest.err | |
24049 rm -f conftest.er1 | |
24050 cat conftest.err >&5 | |
24051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24052 (exit $ac_status); } >/dev/null && { | |
24053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
24054 test ! -s conftest.err | |
24055 }; then | |
24056 ac_header_preproc=yes | |
24057 else | |
24058 $as_echo "$as_me: failed program was:" >&5 | |
24059 sed 's/^/| /' conftest.$ac_ext >&5 | |
24060 | |
24061 ac_header_preproc=no | |
24062 fi | |
24063 | |
24064 rm -f conftest.err conftest.$ac_ext | |
24065 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24066 $as_echo "$ac_header_preproc" >&6; } | |
24067 | |
24068 # So? What about this header? | |
24069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24070 yes:no: ) | |
24071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24072 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
24074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24075 ac_header_preproc=yes | |
24076 ;; | |
24077 no:yes:* ) | |
24078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
24079 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
24080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
24081 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24083 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24085 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
24086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
24087 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
24088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
24089 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
24090 | |
24091 ;; | |
24092 esac | |
24093 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24094 $as_echo_n "checking for $ac_header... " >&6; } | |
24095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24096 $as_echo_n "(cached) " >&6 | |
24097 else | |
24098 eval "$as_ac_Header=\$ac_header_preproc" | |
24099 fi | |
24100 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
24101 $as_echo "$as_val"'` | |
24102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24103 $as_echo "$ac_res" >&6; } | |
24104 | |
24105 fi | |
24106 if test `eval 'as_val=${'$as_ac_Header'} | |
24107 $as_echo "$as_val"'` = yes; then | |
24108 cat >>confdefs.h <<_ACEOF | 13083 cat >>confdefs.h <<_ACEOF |
24109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 13084 #define HAVE_KERBEROSIV_KRB_H 1 |
24110 _ACEOF | 13085 _ACEOF |
24111 | 13086 |
24112 else | 13087 else |
24113 | 13088 for ac_header in kerberos/krb.h |
24114 for ac_header in kerberos/krb.h | 13089 do : |
24115 do | 13090 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default" |
24116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 13091 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then : |
24117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24118 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24119 $as_echo_n "checking for $ac_header... " >&6; } | |
24120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24121 $as_echo_n "(cached) " >&6 | |
24122 fi | |
24123 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
24124 $as_echo "$as_val"'` | |
24125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24126 $as_echo "$ac_res" >&6; } | |
24127 else | |
24128 # Is the header compilable? | |
24129 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
24130 $as_echo_n "checking $ac_header usability... " >&6; } | |
24131 cat >conftest.$ac_ext <<_ACEOF | |
24132 /* confdefs.h. */ | |
24133 _ACEOF | |
24134 cat confdefs.h >>conftest.$ac_ext | |
24135 cat >>conftest.$ac_ext <<_ACEOF | |
24136 /* end confdefs.h. */ | |
24137 $ac_includes_default | |
24138 #include <$ac_header> | |
24139 _ACEOF | |
24140 rm -f conftest.$ac_objext | |
24141 if { (ac_try="$ac_compile" | |
24142 case "(($ac_try" in | |
24143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24144 *) ac_try_echo=$ac_try;; | |
24145 esac | |
24146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24147 $as_echo "$ac_try_echo") >&5 | |
24148 (eval "$ac_compile") 2>conftest.er1 | |
24149 ac_status=$? | |
24150 grep -v '^ *+' conftest.er1 >conftest.err | |
24151 rm -f conftest.er1 | |
24152 cat conftest.err >&5 | |
24153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24154 (exit $ac_status); } && { | |
24155 test -z "$ac_c_werror_flag" || | |
24156 test ! -s conftest.err | |
24157 } && test -s conftest.$ac_objext; then | |
24158 ac_header_compiler=yes | |
24159 else | |
24160 $as_echo "$as_me: failed program was:" >&5 | |
24161 sed 's/^/| /' conftest.$ac_ext >&5 | |
24162 | |
24163 ac_header_compiler=no | |
24164 fi | |
24165 | |
24166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24167 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24168 $as_echo "$ac_header_compiler" >&6; } | |
24169 | |
24170 # Is the header present? | |
24171 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24172 $as_echo_n "checking $ac_header presence... " >&6; } | |
24173 cat >conftest.$ac_ext <<_ACEOF | |
24174 /* confdefs.h. */ | |
24175 _ACEOF | |
24176 cat confdefs.h >>conftest.$ac_ext | |
24177 cat >>conftest.$ac_ext <<_ACEOF | |
24178 /* end confdefs.h. */ | |
24179 #include <$ac_header> | |
24180 _ACEOF | |
24181 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
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_cpp conftest.$ac_ext") 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); } >/dev/null && { | |
24195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
24196 test ! -s conftest.err | |
24197 }; then | |
24198 ac_header_preproc=yes | |
24199 else | |
24200 $as_echo "$as_me: failed program was:" >&5 | |
24201 sed 's/^/| /' conftest.$ac_ext >&5 | |
24202 | |
24203 ac_header_preproc=no | |
24204 fi | |
24205 | |
24206 rm -f conftest.err conftest.$ac_ext | |
24207 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24208 $as_echo "$ac_header_preproc" >&6; } | |
24209 | |
24210 # So? What about this header? | |
24211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24212 yes:no: ) | |
24213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24214 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
24216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24217 ac_header_preproc=yes | |
24218 ;; | |
24219 no:yes:* ) | |
24220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
24221 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
24222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
24223 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24225 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24227 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
24228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
24229 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
24230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
24231 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
24232 | |
24233 ;; | |
24234 esac | |
24235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24236 $as_echo_n "checking for $ac_header... " >&6; } | |
24237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24238 $as_echo_n "(cached) " >&6 | |
24239 else | |
24240 eval "$as_ac_Header=\$ac_header_preproc" | |
24241 fi | |
24242 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
24243 $as_echo "$as_val"'` | |
24244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24245 $as_echo "$ac_res" >&6; } | |
24246 | |
24247 fi | |
24248 if test `eval 'as_val=${'$as_ac_Header'} | |
24249 $as_echo "$as_val"'` = yes; then | |
24250 cat >>confdefs.h <<_ACEOF | 13092 cat >>confdefs.h <<_ACEOF |
24251 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 13093 #define HAVE_KERBEROS_KRB_H 1 |
24252 _ACEOF | 13094 _ACEOF |
24253 | 13095 |
24254 fi | 13096 fi |
24255 | 13097 |
24256 done | 13098 done |
24262 fi | 13104 fi |
24263 | 13105 |
24264 done | 13106 done |
24265 | 13107 |
24266 fi | 13108 fi |
24267 | 13109 for ac_header in com_err.h |
24268 for ac_header in com_err.h | 13110 do : |
24269 do | 13111 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default" |
24270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 13112 if test "x$ac_cv_header_com_err_h" = x""yes; then : |
24271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24272 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24273 $as_echo_n "checking for $ac_header... " >&6; } | |
24274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24275 $as_echo_n "(cached) " >&6 | |
24276 fi | |
24277 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
24278 $as_echo "$as_val"'` | |
24279 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24280 $as_echo "$ac_res" >&6; } | |
24281 else | |
24282 # Is the header compilable? | |
24283 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
24284 $as_echo_n "checking $ac_header usability... " >&6; } | |
24285 cat >conftest.$ac_ext <<_ACEOF | |
24286 /* confdefs.h. */ | |
24287 _ACEOF | |
24288 cat confdefs.h >>conftest.$ac_ext | |
24289 cat >>conftest.$ac_ext <<_ACEOF | |
24290 /* end confdefs.h. */ | |
24291 $ac_includes_default | |
24292 #include <$ac_header> | |
24293 _ACEOF | |
24294 rm -f conftest.$ac_objext | |
24295 if { (ac_try="$ac_compile" | |
24296 case "(($ac_try" in | |
24297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24298 *) ac_try_echo=$ac_try;; | |
24299 esac | |
24300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24301 $as_echo "$ac_try_echo") >&5 | |
24302 (eval "$ac_compile") 2>conftest.er1 | |
24303 ac_status=$? | |
24304 grep -v '^ *+' conftest.er1 >conftest.err | |
24305 rm -f conftest.er1 | |
24306 cat conftest.err >&5 | |
24307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24308 (exit $ac_status); } && { | |
24309 test -z "$ac_c_werror_flag" || | |
24310 test ! -s conftest.err | |
24311 } && test -s conftest.$ac_objext; then | |
24312 ac_header_compiler=yes | |
24313 else | |
24314 $as_echo "$as_me: failed program was:" >&5 | |
24315 sed 's/^/| /' conftest.$ac_ext >&5 | |
24316 | |
24317 ac_header_compiler=no | |
24318 fi | |
24319 | |
24320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24321 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24322 $as_echo "$ac_header_compiler" >&6; } | |
24323 | |
24324 # Is the header present? | |
24325 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24326 $as_echo_n "checking $ac_header presence... " >&6; } | |
24327 cat >conftest.$ac_ext <<_ACEOF | |
24328 /* confdefs.h. */ | |
24329 _ACEOF | |
24330 cat confdefs.h >>conftest.$ac_ext | |
24331 cat >>conftest.$ac_ext <<_ACEOF | |
24332 /* end confdefs.h. */ | |
24333 #include <$ac_header> | |
24334 _ACEOF | |
24335 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
24336 case "(($ac_try" in | |
24337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24338 *) ac_try_echo=$ac_try;; | |
24339 esac | |
24340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24341 $as_echo "$ac_try_echo") >&5 | |
24342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
24343 ac_status=$? | |
24344 grep -v '^ *+' conftest.er1 >conftest.err | |
24345 rm -f conftest.er1 | |
24346 cat conftest.err >&5 | |
24347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24348 (exit $ac_status); } >/dev/null && { | |
24349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
24350 test ! -s conftest.err | |
24351 }; then | |
24352 ac_header_preproc=yes | |
24353 else | |
24354 $as_echo "$as_me: failed program was:" >&5 | |
24355 sed 's/^/| /' conftest.$ac_ext >&5 | |
24356 | |
24357 ac_header_preproc=no | |
24358 fi | |
24359 | |
24360 rm -f conftest.err conftest.$ac_ext | |
24361 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24362 $as_echo "$ac_header_preproc" >&6; } | |
24363 | |
24364 # So? What about this header? | |
24365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24366 yes:no: ) | |
24367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24368 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
24370 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24371 ac_header_preproc=yes | |
24372 ;; | |
24373 no:yes:* ) | |
24374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
24375 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
24376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
24377 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24379 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24381 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
24382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
24383 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
24384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
24385 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
24386 | |
24387 ;; | |
24388 esac | |
24389 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24390 $as_echo_n "checking for $ac_header... " >&6; } | |
24391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24392 $as_echo_n "(cached) " >&6 | |
24393 else | |
24394 eval "$as_ac_Header=\$ac_header_preproc" | |
24395 fi | |
24396 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
24397 $as_echo "$as_val"'` | |
24398 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24399 $as_echo "$ac_res" >&6; } | |
24400 | |
24401 fi | |
24402 if test `eval 'as_val=${'$as_ac_Header'} | |
24403 $as_echo "$as_val"'` = yes; then | |
24404 cat >>confdefs.h <<_ACEOF | 13113 cat >>confdefs.h <<_ACEOF |
24405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 13114 #define HAVE_COM_ERR_H 1 |
24406 _ACEOF | 13115 _ACEOF |
24407 | 13116 |
24408 fi | 13117 fi |
24409 | 13118 |
24410 done | 13119 done |
24417 | 13126 |
24418 | 13127 |
24419 | 13128 |
24420 # Solaris requires -lintl if you want strerror (which calls dgettext) | 13129 # Solaris requires -lintl if you want strerror (which calls dgettext) |
24421 # to return localized messages. | 13130 # to return localized messages. |
24422 | 13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 |
24423 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 | |
24424 $as_echo_n "checking for dgettext in -lintl... " >&6; } | 13132 $as_echo_n "checking for dgettext in -lintl... " >&6; } |
24425 if test "${ac_cv_lib_intl_dgettext+set}" = set; then | 13133 if test "${ac_cv_lib_intl_dgettext+set}" = set; then : |
24426 $as_echo_n "(cached) " >&6 | 13134 $as_echo_n "(cached) " >&6 |
24427 else | 13135 else |
24428 ac_check_lib_save_LIBS=$LIBS | 13136 ac_check_lib_save_LIBS=$LIBS |
24429 LIBS="-lintl $LIBS" | 13137 LIBS="-lintl $LIBS" |
24430 cat >conftest.$ac_ext <<_ACEOF | 13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
24431 /* confdefs.h. */ | |
24432 _ACEOF | |
24433 cat confdefs.h >>conftest.$ac_ext | |
24434 cat >>conftest.$ac_ext <<_ACEOF | |
24435 /* end confdefs.h. */ | 13139 /* end confdefs.h. */ |
24436 | 13140 |
24437 /* Override any GCC internal prototype to avoid an error. | 13141 /* Override any GCC internal prototype to avoid an error. |
24438 Use char because int might match the return type of a GCC | 13142 Use char because int might match the return type of a GCC |
24439 builtin and then its argument prototype would still apply. */ | 13143 builtin and then its argument prototype would still apply. */ |
24447 return dgettext (); | 13151 return dgettext (); |
24448 ; | 13152 ; |
24449 return 0; | 13153 return 0; |
24450 } | 13154 } |
24451 _ACEOF | 13155 _ACEOF |
24452 rm -f conftest.$ac_objext conftest$ac_exeext | 13156 if ac_fn_c_try_link "$LINENO"; then : |
24453 if { (ac_try="$ac_link" | |
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_link") 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); } && { | |
24467 test -z "$ac_c_werror_flag" || | |
24468 test ! -s conftest.err | |
24469 } && test -s conftest$ac_exeext && { | |
24470 test "$cross_compiling" = yes || | |
24471 $as_test_x conftest$ac_exeext | |
24472 }; then | |
24473 ac_cv_lib_intl_dgettext=yes | 13157 ac_cv_lib_intl_dgettext=yes |
24474 else | 13158 else |
24475 $as_echo "$as_me: failed program was:" >&5 | 13159 ac_cv_lib_intl_dgettext=no |
24476 sed 's/^/| /' conftest.$ac_ext >&5 | 13160 fi |
24477 | 13161 rm -f core conftest.err conftest.$ac_objext \ |
24478 ac_cv_lib_intl_dgettext=no | 13162 conftest$ac_exeext conftest.$ac_ext |
24479 fi | |
24480 | |
24481 rm -rf conftest.dSYM | |
24482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
24483 conftest$ac_exeext conftest.$ac_ext | |
24484 LIBS=$ac_check_lib_save_LIBS | 13163 LIBS=$ac_check_lib_save_LIBS |
24485 fi | 13164 fi |
24486 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 | 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 |
24487 $as_echo "$ac_cv_lib_intl_dgettext" >&6; } | 13166 $as_echo "$ac_cv_lib_intl_dgettext" >&6; } |
24488 if test $ac_cv_lib_intl_dgettext = yes; then | 13167 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then : |
24489 cat >>confdefs.h <<_ACEOF | 13168 cat >>confdefs.h <<_ACEOF |
24490 #define HAVE_LIBINTL 1 | 13169 #define HAVE_LIBINTL 1 |
24491 _ACEOF | 13170 _ACEOF |
24492 | 13171 |
24493 LIBS="-lintl $LIBS" | 13172 LIBS="-lintl $LIBS" |
24494 | 13173 |
24495 fi | 13174 fi |
24496 | 13175 |
24497 | 13176 |
24498 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 | 13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5 |
24499 $as_echo_n "checking whether localtime caches TZ... " >&6; } | 13178 $as_echo_n "checking whether localtime caches TZ... " >&6; } |
24500 if test "${emacs_cv_localtime_cache+set}" = set; then | 13179 if test "${emacs_cv_localtime_cache+set}" = set; then : |
24501 $as_echo_n "(cached) " >&6 | 13180 $as_echo_n "(cached) " >&6 |
24502 else | 13181 else |
24503 if test x$ac_cv_func_tzset = xyes; then | 13182 if test x$ac_cv_func_tzset = xyes; then |
24504 if test "$cross_compiling" = yes; then | 13183 if test "$cross_compiling" = yes; then : |
24505 # If we have tzset, assume the worst when cross-compiling. | 13184 # If we have tzset, assume the worst when cross-compiling. |
24506 emacs_cv_localtime_cache=yes | 13185 emacs_cv_localtime_cache=yes |
24507 else | 13186 else |
24508 cat >conftest.$ac_ext <<_ACEOF | 13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
24509 /* confdefs.h. */ | |
24510 _ACEOF | |
24511 cat confdefs.h >>conftest.$ac_ext | |
24512 cat >>conftest.$ac_ext <<_ACEOF | |
24513 /* end confdefs.h. */ | 13188 /* end confdefs.h. */ |
24514 #include <time.h> | 13189 #include <time.h> |
24515 extern char **environ; | 13190 extern char **environ; |
24516 unset_TZ () | 13191 unset_TZ () |
24517 { | 13192 { |
24539 if (localtime (&now)->tm_hour != hour_unset) | 13214 if (localtime (&now)->tm_hour != hour_unset) |
24540 exit (1); | 13215 exit (1); |
24541 exit (0); | 13216 exit (0); |
24542 } | 13217 } |
24543 _ACEOF | 13218 _ACEOF |
24544 rm -f conftest$ac_exeext | 13219 if ac_fn_c_try_run "$LINENO"; then : |
24545 if { (ac_try="$ac_link" | |
24546 case "(($ac_try" in | |
24547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24548 *) ac_try_echo=$ac_try;; | |
24549 esac | |
24550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24551 $as_echo "$ac_try_echo") >&5 | |
24552 (eval "$ac_link") 2>&5 | |
24553 ac_status=$? | |
24554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24556 { (case "(($ac_try" in | |
24557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24558 *) ac_try_echo=$ac_try;; | |
24559 esac | |
24560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24561 $as_echo "$ac_try_echo") >&5 | |
24562 (eval "$ac_try") 2>&5 | |
24563 ac_status=$? | |
24564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24565 (exit $ac_status); }; }; then | |
24566 emacs_cv_localtime_cache=no | 13220 emacs_cv_localtime_cache=no |
24567 else | 13221 else |
24568 $as_echo "$as_me: program exited with status $ac_status" >&5 | 13222 emacs_cv_localtime_cache=yes |
24569 $as_echo "$as_me: failed program was:" >&5 | 13223 fi |
24570 sed 's/^/| /' conftest.$ac_ext >&5 | 13224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
24571 | 13225 conftest.$ac_objext conftest.beam conftest.$ac_ext |
24572 ( exit $ac_status ) | 13226 fi |
24573 emacs_cv_localtime_cache=yes | |
24574 fi | |
24575 rm -rf conftest.dSYM | |
24576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
24577 fi | |
24578 | |
24579 | 13227 |
24580 else | 13228 else |
24581 # If we lack tzset, report that localtime does not cache TZ, | 13229 # If we lack tzset, report that localtime does not cache TZ, |
24582 # since we can't invalidate the cache if we don't have tzset. | 13230 # since we can't invalidate the cache if we don't have tzset. |
24583 emacs_cv_localtime_cache=no | 13231 emacs_cv_localtime_cache=no |
24584 fi | 13232 fi |
24585 fi | 13233 fi |
24586 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 | 13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5 |
24587 $as_echo "$emacs_cv_localtime_cache" >&6; } | 13235 $as_echo "$emacs_cv_localtime_cache" >&6; } |
24588 if test $emacs_cv_localtime_cache = yes; then | 13236 if test $emacs_cv_localtime_cache = yes; then |
24589 | 13237 |
24590 cat >>confdefs.h <<\_ACEOF | 13238 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h |
24591 #define LOCALTIME_CACHE 1 | |
24592 _ACEOF | |
24593 | 13239 |
24594 fi | 13240 fi |
24595 | 13241 |
24596 if test "x$HAVE_TIMEVAL" = xyes; then | 13242 if test "x$HAVE_TIMEVAL" = xyes; then |
24597 | 13243 for ac_func in gettimeofday |
24598 for ac_func in gettimeofday | 13244 do : |
24599 do | 13245 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
24600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 13246 if test "x$ac_cv_func_gettimeofday" = x""yes; then : |
24601 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 13247 cat >>confdefs.h <<_ACEOF |
24602 $as_echo_n "checking for $ac_func... " >&6; } | 13248 #define HAVE_GETTIMEOFDAY 1 |
24603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 13249 _ACEOF |
13250 | |
13251 fi | |
13252 done | |
13253 | |
13254 if test $ac_cv_func_gettimeofday = yes; then | |
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5 | |
13256 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } | |
13257 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then : | |
24604 $as_echo_n "(cached) " >&6 | 13258 $as_echo_n "(cached) " >&6 |
24605 else | 13259 else |
24606 cat >conftest.$ac_ext <<_ACEOF | 13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
24607 /* confdefs.h. */ | |
24608 _ACEOF | |
24609 cat confdefs.h >>conftest.$ac_ext | |
24610 cat >>conftest.$ac_ext <<_ACEOF | |
24611 /* end confdefs.h. */ | |
24612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24613 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24614 #define $ac_func innocuous_$ac_func | |
24615 | |
24616 /* System header to define __stub macros and hopefully few prototypes, | |
24617 which can conflict with char $ac_func (); below. | |
24618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24619 <limits.h> exists even on freestanding compilers. */ | |
24620 | |
24621 #ifdef __STDC__ | |
24622 # include <limits.h> | |
24623 #else | |
24624 # include <assert.h> | |
24625 #endif | |
24626 | |
24627 #undef $ac_func | |
24628 | |
24629 /* Override any GCC internal prototype to avoid an error. | |
24630 Use char because int might match the return type of a GCC | |
24631 builtin and then its argument prototype would still apply. */ | |
24632 #ifdef __cplusplus | |
24633 extern "C" | |
24634 #endif | |
24635 char $ac_func (); | |
24636 /* The GNU C library defines this for functions which it implements | |
24637 to always fail with ENOSYS. Some functions are actually named | |
24638 something starting with __ and the normal name is an alias. */ | |
24639 #if defined __stub_$ac_func || defined __stub___$ac_func | |
24640 choke me | |
24641 #endif | |
24642 | |
24643 int | |
24644 main () | |
24645 { | |
24646 return $ac_func (); | |
24647 ; | |
24648 return 0; | |
24649 } | |
24650 _ACEOF | |
24651 rm -f conftest.$ac_objext conftest$ac_exeext | |
24652 if { (ac_try="$ac_link" | |
24653 case "(($ac_try" in | |
24654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24655 *) ac_try_echo=$ac_try;; | |
24656 esac | |
24657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24658 $as_echo "$ac_try_echo") >&5 | |
24659 (eval "$ac_link") 2>conftest.er1 | |
24660 ac_status=$? | |
24661 grep -v '^ *+' conftest.er1 >conftest.err | |
24662 rm -f conftest.er1 | |
24663 cat conftest.err >&5 | |
24664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24665 (exit $ac_status); } && { | |
24666 test -z "$ac_c_werror_flag" || | |
24667 test ! -s conftest.err | |
24668 } && test -s conftest$ac_exeext && { | |
24669 test "$cross_compiling" = yes || | |
24670 $as_test_x conftest$ac_exeext | |
24671 }; then | |
24672 eval "$as_ac_var=yes" | |
24673 else | |
24674 $as_echo "$as_me: failed program was:" >&5 | |
24675 sed 's/^/| /' conftest.$ac_ext >&5 | |
24676 | |
24677 eval "$as_ac_var=no" | |
24678 fi | |
24679 | |
24680 rm -rf conftest.dSYM | |
24681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
24682 conftest$ac_exeext conftest.$ac_ext | |
24683 fi | |
24684 ac_res=`eval 'as_val=${'$as_ac_var'} | |
24685 $as_echo "$as_val"'` | |
24686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24687 $as_echo "$ac_res" >&6; } | |
24688 if test `eval 'as_val=${'$as_ac_var'} | |
24689 $as_echo "$as_val"'` = yes; then | |
24690 cat >>confdefs.h <<_ACEOF | |
24691 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24692 _ACEOF | |
24693 | |
24694 fi | |
24695 done | |
24696 | |
24697 if test $ac_cv_func_gettimeofday = yes; then | |
24698 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 | |
24699 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } | |
24700 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
24701 $as_echo_n "(cached) " >&6 | |
24702 else | |
24703 cat >conftest.$ac_ext <<_ACEOF | |
24704 /* confdefs.h. */ | |
24705 _ACEOF | |
24706 cat confdefs.h >>conftest.$ac_ext | |
24707 cat >>conftest.$ac_ext <<_ACEOF | |
24708 /* end confdefs.h. */ | 13261 /* end confdefs.h. */ |
24709 | 13262 |
24710 #ifdef TIME_WITH_SYS_TIME | 13263 #ifdef TIME_WITH_SYS_TIME |
24711 #include <sys/time.h> | 13264 #include <sys/time.h> |
24712 #include <time.h> | 13265 #include <time.h> |
24724 gettimeofday (&time, 0); | 13277 gettimeofday (&time, 0); |
24725 ; | 13278 ; |
24726 return 0; | 13279 return 0; |
24727 } | 13280 } |
24728 _ACEOF | 13281 _ACEOF |
24729 rm -f conftest.$ac_objext | 13282 if ac_fn_c_try_compile "$LINENO"; then : |
24730 if { (ac_try="$ac_compile" | |
24731 case "(($ac_try" in | |
24732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24733 *) ac_try_echo=$ac_try;; | |
24734 esac | |
24735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24736 $as_echo "$ac_try_echo") >&5 | |
24737 (eval "$ac_compile") 2>conftest.er1 | |
24738 ac_status=$? | |
24739 grep -v '^ *+' conftest.er1 >conftest.err | |
24740 rm -f conftest.er1 | |
24741 cat conftest.err >&5 | |
24742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24743 (exit $ac_status); } && { | |
24744 test -z "$ac_c_werror_flag" || | |
24745 test ! -s conftest.err | |
24746 } && test -s conftest.$ac_objext; then | |
24747 emacs_cv_gettimeofday_two_arguments=yes | 13283 emacs_cv_gettimeofday_two_arguments=yes |
24748 else | 13284 else |
24749 $as_echo "$as_me: failed program was:" >&5 | 13285 emacs_cv_gettimeofday_two_arguments=no |
24750 sed 's/^/| /' conftest.$ac_ext >&5 | 13286 fi |
24751 | |
24752 emacs_cv_gettimeofday_two_arguments=no | |
24753 fi | |
24754 | |
24755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 13287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
24756 fi | 13288 fi |
24757 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 | 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
24758 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } | 13290 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } |
24759 if test $emacs_cv_gettimeofday_two_arguments = no; then | 13291 if test $emacs_cv_gettimeofday_two_arguments = no; then |
24760 | 13292 |
24761 cat >>confdefs.h <<\_ACEOF | 13293 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h |
24762 #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
24763 _ACEOF | |
24764 | 13294 |
24765 fi | 13295 fi |
24766 fi | 13296 fi |
24767 fi | 13297 fi |
24768 | 13298 |
24769 ok_so_far=yes | 13299 ok_so_far=yes |
24770 { $as_echo "$as_me:$LINENO: checking for socket" >&5 | 13300 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" |
24771 $as_echo_n "checking for socket... " >&6; } | 13301 if test "x$ac_cv_func_socket" = x""yes; then : |
24772 if test "${ac_cv_func_socket+set}" = set; then | 13302 |
24773 $as_echo_n "(cached) " >&6 | |
24774 else | |
24775 cat >conftest.$ac_ext <<_ACEOF | |
24776 /* confdefs.h. */ | |
24777 _ACEOF | |
24778 cat confdefs.h >>conftest.$ac_ext | |
24779 cat >>conftest.$ac_ext <<_ACEOF | |
24780 /* end confdefs.h. */ | |
24781 /* Define socket to an innocuous variant, in case <limits.h> declares socket. | |
24782 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24783 #define socket innocuous_socket | |
24784 | |
24785 /* System header to define __stub macros and hopefully few prototypes, | |
24786 which can conflict with char socket (); below. | |
24787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24788 <limits.h> exists even on freestanding compilers. */ | |
24789 | |
24790 #ifdef __STDC__ | |
24791 # include <limits.h> | |
24792 #else | |
24793 # include <assert.h> | |
24794 #endif | |
24795 | |
24796 #undef socket | |
24797 | |
24798 /* Override any GCC internal prototype to avoid an error. | |
24799 Use char because int might match the return type of a GCC | |
24800 builtin and then its argument prototype would still apply. */ | |
24801 #ifdef __cplusplus | |
24802 extern "C" | |
24803 #endif | |
24804 char socket (); | |
24805 /* The GNU C library defines this for functions which it implements | |
24806 to always fail with ENOSYS. Some functions are actually named | |
24807 something starting with __ and the normal name is an alias. */ | |
24808 #if defined __stub_socket || defined __stub___socket | |
24809 choke me | |
24810 #endif | |
24811 | |
24812 int | |
24813 main () | |
24814 { | |
24815 return socket (); | |
24816 ; | |
24817 return 0; | |
24818 } | |
24819 _ACEOF | |
24820 rm -f conftest.$ac_objext conftest$ac_exeext | |
24821 if { (ac_try="$ac_link" | |
24822 case "(($ac_try" in | |
24823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24824 *) ac_try_echo=$ac_try;; | |
24825 esac | |
24826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24827 $as_echo "$ac_try_echo") >&5 | |
24828 (eval "$ac_link") 2>conftest.er1 | |
24829 ac_status=$? | |
24830 grep -v '^ *+' conftest.er1 >conftest.err | |
24831 rm -f conftest.er1 | |
24832 cat conftest.err >&5 | |
24833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24834 (exit $ac_status); } && { | |
24835 test -z "$ac_c_werror_flag" || | |
24836 test ! -s conftest.err | |
24837 } && test -s conftest$ac_exeext && { | |
24838 test "$cross_compiling" = yes || | |
24839 $as_test_x conftest$ac_exeext | |
24840 }; then | |
24841 ac_cv_func_socket=yes | |
24842 else | |
24843 $as_echo "$as_me: failed program was:" >&5 | |
24844 sed 's/^/| /' conftest.$ac_ext >&5 | |
24845 | |
24846 ac_cv_func_socket=no | |
24847 fi | |
24848 | |
24849 rm -rf conftest.dSYM | |
24850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
24851 conftest$ac_exeext conftest.$ac_ext | |
24852 fi | |
24853 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
24854 $as_echo "$ac_cv_func_socket" >&6; } | |
24855 if test $ac_cv_func_socket = yes; then | |
24856 : | |
24857 else | 13303 else |
24858 ok_so_far=no | 13304 ok_so_far=no |
24859 fi | 13305 fi |
24860 | 13306 |
24861 if test $ok_so_far = yes; then | 13307 if test $ok_so_far = yes; then |
24862 if test "${ac_cv_header_netinet_in_h+set}" = set; then | 13308 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" |
24863 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | 13309 if test "x$ac_cv_header_netinet_in_h" = x""yes; then : |
24864 $as_echo_n "checking for netinet/in.h... " >&6; } | 13310 |
24865 if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
24866 $as_echo_n "(cached) " >&6 | |
24867 fi | |
24868 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
24869 $as_echo "$ac_cv_header_netinet_in_h" >&6; } | |
24870 else | |
24871 # Is the header compilable? | |
24872 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 | |
24873 $as_echo_n "checking netinet/in.h usability... " >&6; } | |
24874 cat >conftest.$ac_ext <<_ACEOF | |
24875 /* confdefs.h. */ | |
24876 _ACEOF | |
24877 cat confdefs.h >>conftest.$ac_ext | |
24878 cat >>conftest.$ac_ext <<_ACEOF | |
24879 /* end confdefs.h. */ | |
24880 $ac_includes_default | |
24881 #include <netinet/in.h> | |
24882 _ACEOF | |
24883 rm -f conftest.$ac_objext | |
24884 if { (ac_try="$ac_compile" | |
24885 case "(($ac_try" in | |
24886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24887 *) ac_try_echo=$ac_try;; | |
24888 esac | |
24889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24890 $as_echo "$ac_try_echo") >&5 | |
24891 (eval "$ac_compile") 2>conftest.er1 | |
24892 ac_status=$? | |
24893 grep -v '^ *+' conftest.er1 >conftest.err | |
24894 rm -f conftest.er1 | |
24895 cat conftest.err >&5 | |
24896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24897 (exit $ac_status); } && { | |
24898 test -z "$ac_c_werror_flag" || | |
24899 test ! -s conftest.err | |
24900 } && test -s conftest.$ac_objext; then | |
24901 ac_header_compiler=yes | |
24902 else | |
24903 $as_echo "$as_me: failed program was:" >&5 | |
24904 sed 's/^/| /' conftest.$ac_ext >&5 | |
24905 | |
24906 ac_header_compiler=no | |
24907 fi | |
24908 | |
24909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24910 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24911 $as_echo "$ac_header_compiler" >&6; } | |
24912 | |
24913 # Is the header present? | |
24914 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 | |
24915 $as_echo_n "checking netinet/in.h presence... " >&6; } | |
24916 cat >conftest.$ac_ext <<_ACEOF | |
24917 /* confdefs.h. */ | |
24918 _ACEOF | |
24919 cat confdefs.h >>conftest.$ac_ext | |
24920 cat >>conftest.$ac_ext <<_ACEOF | |
24921 /* end confdefs.h. */ | |
24922 #include <netinet/in.h> | |
24923 _ACEOF | |
24924 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
24925 case "(($ac_try" in | |
24926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24927 *) ac_try_echo=$ac_try;; | |
24928 esac | |
24929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24930 $as_echo "$ac_try_echo") >&5 | |
24931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
24932 ac_status=$? | |
24933 grep -v '^ *+' conftest.er1 >conftest.err | |
24934 rm -f conftest.er1 | |
24935 cat conftest.err >&5 | |
24936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24937 (exit $ac_status); } >/dev/null && { | |
24938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
24939 test ! -s conftest.err | |
24940 }; then | |
24941 ac_header_preproc=yes | |
24942 else | |
24943 $as_echo "$as_me: failed program was:" >&5 | |
24944 sed 's/^/| /' conftest.$ac_ext >&5 | |
24945 | |
24946 ac_header_preproc=no | |
24947 fi | |
24948 | |
24949 rm -f conftest.err conftest.$ac_ext | |
24950 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24951 $as_echo "$ac_header_preproc" >&6; } | |
24952 | |
24953 # So? What about this header? | |
24954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24955 yes:no: ) | |
24956 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24957 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24958 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 | |
24959 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} | |
24960 ac_header_preproc=yes | |
24961 ;; | |
24962 no:yes:* ) | |
24963 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 | |
24964 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} | |
24965 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 | |
24966 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} | |
24967 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 | |
24968 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} | |
24969 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24970 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
24971 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 | |
24972 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} | |
24973 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 | |
24974 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} | |
24975 | |
24976 ;; | |
24977 esac | |
24978 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
24979 $as_echo_n "checking for netinet/in.h... " >&6; } | |
24980 if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
24981 $as_echo_n "(cached) " >&6 | |
24982 else | |
24983 ac_cv_header_netinet_in_h=$ac_header_preproc | |
24984 fi | |
24985 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
24986 $as_echo "$ac_cv_header_netinet_in_h" >&6; } | |
24987 | |
24988 fi | |
24989 if test $ac_cv_header_netinet_in_h = yes; then | |
24990 : | |
24991 else | 13311 else |
24992 ok_so_far=no | 13312 ok_so_far=no |
24993 fi | 13313 fi |
24994 | 13314 |
24995 | 13315 |
24996 fi | 13316 fi |
24997 if test $ok_so_far = yes; then | 13317 if test $ok_so_far = yes; then |
24998 if test "${ac_cv_header_arpa_inet_h+set}" = set; then | 13318 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" |
24999 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | 13319 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : |
25000 $as_echo_n "checking for arpa/inet.h... " >&6; } | 13320 |
25001 if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
25002 $as_echo_n "(cached) " >&6 | |
25003 fi | |
25004 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 | |
25005 $as_echo "$ac_cv_header_arpa_inet_h" >&6; } | |
25006 else | |
25007 # Is the header compilable? | |
25008 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 | |
25009 $as_echo_n "checking arpa/inet.h usability... " >&6; } | |
25010 cat >conftest.$ac_ext <<_ACEOF | |
25011 /* confdefs.h. */ | |
25012 _ACEOF | |
25013 cat confdefs.h >>conftest.$ac_ext | |
25014 cat >>conftest.$ac_ext <<_ACEOF | |
25015 /* end confdefs.h. */ | |
25016 $ac_includes_default | |
25017 #include <arpa/inet.h> | |
25018 _ACEOF | |
25019 rm -f conftest.$ac_objext | |
25020 if { (ac_try="$ac_compile" | |
25021 case "(($ac_try" in | |
25022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25023 *) ac_try_echo=$ac_try;; | |
25024 esac | |
25025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25026 $as_echo "$ac_try_echo") >&5 | |
25027 (eval "$ac_compile") 2>conftest.er1 | |
25028 ac_status=$? | |
25029 grep -v '^ *+' conftest.er1 >conftest.err | |
25030 rm -f conftest.er1 | |
25031 cat conftest.err >&5 | |
25032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25033 (exit $ac_status); } && { | |
25034 test -z "$ac_c_werror_flag" || | |
25035 test ! -s conftest.err | |
25036 } && test -s conftest.$ac_objext; then | |
25037 ac_header_compiler=yes | |
25038 else | |
25039 $as_echo "$as_me: failed program was:" >&5 | |
25040 sed 's/^/| /' conftest.$ac_ext >&5 | |
25041 | |
25042 ac_header_compiler=no | |
25043 fi | |
25044 | |
25045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25046 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
25047 $as_echo "$ac_header_compiler" >&6; } | |
25048 | |
25049 # Is the header present? | |
25050 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 | |
25051 $as_echo_n "checking arpa/inet.h presence... " >&6; } | |
25052 cat >conftest.$ac_ext <<_ACEOF | |
25053 /* confdefs.h. */ | |
25054 _ACEOF | |
25055 cat confdefs.h >>conftest.$ac_ext | |
25056 cat >>conftest.$ac_ext <<_ACEOF | |
25057 /* end confdefs.h. */ | |
25058 #include <arpa/inet.h> | |
25059 _ACEOF | |
25060 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
25061 case "(($ac_try" in | |
25062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25063 *) ac_try_echo=$ac_try;; | |
25064 esac | |
25065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25066 $as_echo "$ac_try_echo") >&5 | |
25067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
25068 ac_status=$? | |
25069 grep -v '^ *+' conftest.er1 >conftest.err | |
25070 rm -f conftest.er1 | |
25071 cat conftest.err >&5 | |
25072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25073 (exit $ac_status); } >/dev/null && { | |
25074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
25075 test ! -s conftest.err | |
25076 }; then | |
25077 ac_header_preproc=yes | |
25078 else | |
25079 $as_echo "$as_me: failed program was:" >&5 | |
25080 sed 's/^/| /' conftest.$ac_ext >&5 | |
25081 | |
25082 ac_header_preproc=no | |
25083 fi | |
25084 | |
25085 rm -f conftest.err conftest.$ac_ext | |
25086 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25087 $as_echo "$ac_header_preproc" >&6; } | |
25088 | |
25089 # So? What about this header? | |
25090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
25091 yes:no: ) | |
25092 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
25093 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
25094 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 | |
25095 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} | |
25096 ac_header_preproc=yes | |
25097 ;; | |
25098 no:yes:* ) | |
25099 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 | |
25100 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} | |
25101 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 | |
25102 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} | |
25103 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 | |
25104 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} | |
25105 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25106 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
25107 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 | |
25108 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} | |
25109 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 | |
25110 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} | |
25111 | |
25112 ;; | |
25113 esac | |
25114 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
25115 $as_echo_n "checking for arpa/inet.h... " >&6; } | |
25116 if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
25117 $as_echo_n "(cached) " >&6 | |
25118 else | |
25119 ac_cv_header_arpa_inet_h=$ac_header_preproc | |
25120 fi | |
25121 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 | |
25122 $as_echo "$ac_cv_header_arpa_inet_h" >&6; } | |
25123 | |
25124 fi | |
25125 if test $ac_cv_header_arpa_inet_h = yes; then | |
25126 : | |
25127 else | 13321 else |
25128 ok_so_far=no | 13322 ok_so_far=no |
25129 fi | 13323 fi |
25130 | 13324 |
25131 | 13325 |
25132 fi | 13326 fi |
25133 if test $ok_so_far = yes; then | 13327 if test $ok_so_far = yes; then |
25134 | 13328 |
25135 cat >>confdefs.h <<\_ACEOF | 13329 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h |
25136 #define HAVE_INET_SOCKETS 1 | 13330 |
25137 _ACEOF | 13331 fi |
25138 | |
25139 fi | |
25140 | |
25141 | 13332 |
25142 for ac_header in sys/ioctl.h | 13333 for ac_header in sys/ioctl.h |
25143 do | 13334 do : |
25144 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 13335 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
25145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 13336 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : |
25146 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25147 $as_echo_n "checking for $ac_header... " >&6; } | |
25148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
25149 $as_echo_n "(cached) " >&6 | |
25150 fi | |
25151 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
25152 $as_echo "$as_val"'` | |
25153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
25154 $as_echo "$ac_res" >&6; } | |
25155 else | |
25156 # Is the header compilable? | |
25157 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
25158 $as_echo_n "checking $ac_header usability... " >&6; } | |
25159 cat >conftest.$ac_ext <<_ACEOF | |
25160 /* confdefs.h. */ | |
25161 _ACEOF | |
25162 cat confdefs.h >>conftest.$ac_ext | |
25163 cat >>conftest.$ac_ext <<_ACEOF | |
25164 /* end confdefs.h. */ | |
25165 $ac_includes_default | |
25166 #include <$ac_header> | |
25167 _ACEOF | |
25168 rm -f conftest.$ac_objext | |
25169 if { (ac_try="$ac_compile" | |
25170 case "(($ac_try" in | |
25171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25172 *) ac_try_echo=$ac_try;; | |
25173 esac | |
25174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25175 $as_echo "$ac_try_echo") >&5 | |
25176 (eval "$ac_compile") 2>conftest.er1 | |
25177 ac_status=$? | |
25178 grep -v '^ *+' conftest.er1 >conftest.err | |
25179 rm -f conftest.er1 | |
25180 cat conftest.err >&5 | |
25181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25182 (exit $ac_status); } && { | |
25183 test -z "$ac_c_werror_flag" || | |
25184 test ! -s conftest.err | |
25185 } && test -s conftest.$ac_objext; then | |
25186 ac_header_compiler=yes | |
25187 else | |
25188 $as_echo "$as_me: failed program was:" >&5 | |
25189 sed 's/^/| /' conftest.$ac_ext >&5 | |
25190 | |
25191 ac_header_compiler=no | |
25192 fi | |
25193 | |
25194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25195 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
25196 $as_echo "$ac_header_compiler" >&6; } | |
25197 | |
25198 # Is the header present? | |
25199 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
25200 $as_echo_n "checking $ac_header presence... " >&6; } | |
25201 cat >conftest.$ac_ext <<_ACEOF | |
25202 /* confdefs.h. */ | |
25203 _ACEOF | |
25204 cat confdefs.h >>conftest.$ac_ext | |
25205 cat >>conftest.$ac_ext <<_ACEOF | |
25206 /* end confdefs.h. */ | |
25207 #include <$ac_header> | |
25208 _ACEOF | |
25209 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
25210 case "(($ac_try" in | |
25211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25212 *) ac_try_echo=$ac_try;; | |
25213 esac | |
25214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25215 $as_echo "$ac_try_echo") >&5 | |
25216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
25217 ac_status=$? | |
25218 grep -v '^ *+' conftest.er1 >conftest.err | |
25219 rm -f conftest.er1 | |
25220 cat conftest.err >&5 | |
25221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25222 (exit $ac_status); } >/dev/null && { | |
25223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
25224 test ! -s conftest.err | |
25225 }; then | |
25226 ac_header_preproc=yes | |
25227 else | |
25228 $as_echo "$as_me: failed program was:" >&5 | |
25229 sed 's/^/| /' conftest.$ac_ext >&5 | |
25230 | |
25231 ac_header_preproc=no | |
25232 fi | |
25233 | |
25234 rm -f conftest.err conftest.$ac_ext | |
25235 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25236 $as_echo "$ac_header_preproc" >&6; } | |
25237 | |
25238 # So? What about this header? | |
25239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
25240 yes:no: ) | |
25241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
25242 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
25243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
25244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
25245 ac_header_preproc=yes | |
25246 ;; | |
25247 no:yes:* ) | |
25248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
25249 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
25250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
25251 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
25252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
25253 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
25254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
25255 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
25256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
25257 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
25258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
25259 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
25260 | |
25261 ;; | |
25262 esac | |
25263 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25264 $as_echo_n "checking for $ac_header... " >&6; } | |
25265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
25266 $as_echo_n "(cached) " >&6 | |
25267 else | |
25268 eval "$as_ac_Header=\$ac_header_preproc" | |
25269 fi | |
25270 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
25271 $as_echo "$as_val"'` | |
25272 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
25273 $as_echo "$ac_res" >&6; } | |
25274 | |
25275 fi | |
25276 if test `eval 'as_val=${'$as_ac_Header'} | |
25277 $as_echo "$as_val"'` = yes; then | |
25278 cat >>confdefs.h <<_ACEOF | 13337 cat >>confdefs.h <<_ACEOF |
25279 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 13338 #define HAVE_SYS_IOCTL_H 1 |
25280 _ACEOF | 13339 _ACEOF |
25281 | 13340 |
25282 fi | 13341 fi |
25283 | 13342 |
25284 done | 13343 done |
25285 | 13344 |
25286 | 13345 |
25287 if test -f /usr/lpp/X11/bin/smt.exp; then | 13346 if test -f /usr/lpp/X11/bin/smt.exp; then |
25288 | 13347 |
25289 cat >>confdefs.h <<\_ACEOF | 13348 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h |
25290 #define HAVE_AIX_SMT_EXP 1 | 13349 |
25291 _ACEOF | 13350 fi |
25292 | 13351 |
25293 fi | 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5 |
25294 | |
25295 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 | |
25296 $as_echo_n "checking whether system supports dynamic ptys... " >&6; } | 13353 $as_echo_n "checking whether system supports dynamic ptys... " >&6; } |
25297 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | 13354 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
25298 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
25299 $as_echo "yes" >&6; } | 13356 $as_echo "yes" >&6; } |
25300 | 13357 |
25301 cat >>confdefs.h <<\_ACEOF | 13358 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
25302 #define HAVE_DEV_PTMX 1 | 13359 |
25303 _ACEOF | 13360 else |
25304 | 13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
25305 else | |
25306 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
25307 $as_echo "no" >&6; } | 13362 $as_echo "no" >&6; } |
25308 fi | 13363 fi |
25309 | 13364 |
25310 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | 13365 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
25311 $as_echo_n "checking for pid_t... " >&6; } | 13366 if test "x$ac_cv_type_pid_t" = x""yes; then : |
25312 if test "${ac_cv_type_pid_t+set}" = set; then | 13367 |
13368 else | |
13369 | |
13370 cat >>confdefs.h <<_ACEOF | |
13371 #define pid_t int | |
13372 _ACEOF | |
13373 | |
13374 fi | |
13375 | |
13376 for ac_header in vfork.h | |
13377 do : | |
13378 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
13379 if test "x$ac_cv_header_vfork_h" = x""yes; then : | |
13380 cat >>confdefs.h <<_ACEOF | |
13381 #define HAVE_VFORK_H 1 | |
13382 _ACEOF | |
13383 | |
13384 fi | |
13385 | |
13386 done | |
13387 | |
13388 for ac_func in fork vfork | |
13389 do : | |
13390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13391 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13392 eval as_val=\$$as_ac_var | |
13393 if test "x$as_val" = x""yes; then : | |
13394 cat >>confdefs.h <<_ACEOF | |
13395 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13396 _ACEOF | |
13397 | |
13398 fi | |
13399 done | |
13400 | |
13401 if test "x$ac_cv_func_fork" = xyes; then | |
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
13403 $as_echo_n "checking for working fork... " >&6; } | |
13404 if test "${ac_cv_func_fork_works+set}" = set; then : | |
25313 $as_echo_n "(cached) " >&6 | 13405 $as_echo_n "(cached) " >&6 |
25314 else | 13406 else |
25315 ac_cv_type_pid_t=no | 13407 if test "$cross_compiling" = yes; then : |
25316 cat >conftest.$ac_ext <<_ACEOF | 13408 ac_cv_func_fork_works=cross |
25317 /* confdefs.h. */ | 13409 else |
25318 _ACEOF | 13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25319 cat confdefs.h >>conftest.$ac_ext | |
25320 cat >>conftest.$ac_ext <<_ACEOF | |
25321 /* end confdefs.h. */ | 13411 /* end confdefs.h. */ |
25322 $ac_includes_default | 13412 $ac_includes_default |
25323 int | 13413 int |
25324 main () | 13414 main () |
25325 { | 13415 { |
25326 if (sizeof (pid_t)) | 13416 |
25327 return 0; | 13417 /* By Ruediger Kuhlmann. */ |
13418 return fork () < 0; | |
13419 | |
25328 ; | 13420 ; |
25329 return 0; | 13421 return 0; |
25330 } | 13422 } |
25331 _ACEOF | 13423 _ACEOF |
25332 rm -f conftest.$ac_objext | 13424 if ac_fn_c_try_run "$LINENO"; then : |
25333 if { (ac_try="$ac_compile" | |
25334 case "(($ac_try" in | |
25335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25336 *) ac_try_echo=$ac_try;; | |
25337 esac | |
25338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25339 $as_echo "$ac_try_echo") >&5 | |
25340 (eval "$ac_compile") 2>conftest.er1 | |
25341 ac_status=$? | |
25342 grep -v '^ *+' conftest.er1 >conftest.err | |
25343 rm -f conftest.er1 | |
25344 cat conftest.err >&5 | |
25345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25346 (exit $ac_status); } && { | |
25347 test -z "$ac_c_werror_flag" || | |
25348 test ! -s conftest.err | |
25349 } && test -s conftest.$ac_objext; then | |
25350 cat >conftest.$ac_ext <<_ACEOF | |
25351 /* confdefs.h. */ | |
25352 _ACEOF | |
25353 cat confdefs.h >>conftest.$ac_ext | |
25354 cat >>conftest.$ac_ext <<_ACEOF | |
25355 /* end confdefs.h. */ | |
25356 $ac_includes_default | |
25357 int | |
25358 main () | |
25359 { | |
25360 if (sizeof ((pid_t))) | |
25361 return 0; | |
25362 ; | |
25363 return 0; | |
25364 } | |
25365 _ACEOF | |
25366 rm -f conftest.$ac_objext | |
25367 if { (ac_try="$ac_compile" | |
25368 case "(($ac_try" in | |
25369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25370 *) ac_try_echo=$ac_try;; | |
25371 esac | |
25372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25373 $as_echo "$ac_try_echo") >&5 | |
25374 (eval "$ac_compile") 2>conftest.er1 | |
25375 ac_status=$? | |
25376 grep -v '^ *+' conftest.er1 >conftest.err | |
25377 rm -f conftest.er1 | |
25378 cat conftest.err >&5 | |
25379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25380 (exit $ac_status); } && { | |
25381 test -z "$ac_c_werror_flag" || | |
25382 test ! -s conftest.err | |
25383 } && test -s conftest.$ac_objext; then | |
25384 : | |
25385 else | |
25386 $as_echo "$as_me: failed program was:" >&5 | |
25387 sed 's/^/| /' conftest.$ac_ext >&5 | |
25388 | |
25389 ac_cv_type_pid_t=yes | |
25390 fi | |
25391 | |
25392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25393 else | |
25394 $as_echo "$as_me: failed program was:" >&5 | |
25395 sed 's/^/| /' conftest.$ac_ext >&5 | |
25396 | |
25397 | |
25398 fi | |
25399 | |
25400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25401 fi | |
25402 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
25403 $as_echo "$ac_cv_type_pid_t" >&6; } | |
25404 if test $ac_cv_type_pid_t = yes; then | |
25405 : | |
25406 else | |
25407 | |
25408 cat >>confdefs.h <<_ACEOF | |
25409 #define pid_t int | |
25410 _ACEOF | |
25411 | |
25412 fi | |
25413 | |
25414 | |
25415 for ac_header in vfork.h | |
25416 do | |
25417 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
25419 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25420 $as_echo_n "checking for $ac_header... " >&6; } | |
25421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
25422 $as_echo_n "(cached) " >&6 | |
25423 fi | |
25424 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
25425 $as_echo "$as_val"'` | |
25426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
25427 $as_echo "$ac_res" >&6; } | |
25428 else | |
25429 # Is the header compilable? | |
25430 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
25431 $as_echo_n "checking $ac_header usability... " >&6; } | |
25432 cat >conftest.$ac_ext <<_ACEOF | |
25433 /* confdefs.h. */ | |
25434 _ACEOF | |
25435 cat confdefs.h >>conftest.$ac_ext | |
25436 cat >>conftest.$ac_ext <<_ACEOF | |
25437 /* end confdefs.h. */ | |
25438 $ac_includes_default | |
25439 #include <$ac_header> | |
25440 _ACEOF | |
25441 rm -f conftest.$ac_objext | |
25442 if { (ac_try="$ac_compile" | |
25443 case "(($ac_try" in | |
25444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25445 *) ac_try_echo=$ac_try;; | |
25446 esac | |
25447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25448 $as_echo "$ac_try_echo") >&5 | |
25449 (eval "$ac_compile") 2>conftest.er1 | |
25450 ac_status=$? | |
25451 grep -v '^ *+' conftest.er1 >conftest.err | |
25452 rm -f conftest.er1 | |
25453 cat conftest.err >&5 | |
25454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25455 (exit $ac_status); } && { | |
25456 test -z "$ac_c_werror_flag" || | |
25457 test ! -s conftest.err | |
25458 } && test -s conftest.$ac_objext; then | |
25459 ac_header_compiler=yes | |
25460 else | |
25461 $as_echo "$as_me: failed program was:" >&5 | |
25462 sed 's/^/| /' conftest.$ac_ext >&5 | |
25463 | |
25464 ac_header_compiler=no | |
25465 fi | |
25466 | |
25467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25468 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
25469 $as_echo "$ac_header_compiler" >&6; } | |
25470 | |
25471 # Is the header present? | |
25472 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
25473 $as_echo_n "checking $ac_header presence... " >&6; } | |
25474 cat >conftest.$ac_ext <<_ACEOF | |
25475 /* confdefs.h. */ | |
25476 _ACEOF | |
25477 cat confdefs.h >>conftest.$ac_ext | |
25478 cat >>conftest.$ac_ext <<_ACEOF | |
25479 /* end confdefs.h. */ | |
25480 #include <$ac_header> | |
25481 _ACEOF | |
25482 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
25483 case "(($ac_try" in | |
25484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25485 *) ac_try_echo=$ac_try;; | |
25486 esac | |
25487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25488 $as_echo "$ac_try_echo") >&5 | |
25489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
25490 ac_status=$? | |
25491 grep -v '^ *+' conftest.er1 >conftest.err | |
25492 rm -f conftest.er1 | |
25493 cat conftest.err >&5 | |
25494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25495 (exit $ac_status); } >/dev/null && { | |
25496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
25497 test ! -s conftest.err | |
25498 }; then | |
25499 ac_header_preproc=yes | |
25500 else | |
25501 $as_echo "$as_me: failed program was:" >&5 | |
25502 sed 's/^/| /' conftest.$ac_ext >&5 | |
25503 | |
25504 ac_header_preproc=no | |
25505 fi | |
25506 | |
25507 rm -f conftest.err conftest.$ac_ext | |
25508 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25509 $as_echo "$ac_header_preproc" >&6; } | |
25510 | |
25511 # So? What about this header? | |
25512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
25513 yes:no: ) | |
25514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
25515 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
25516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
25517 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
25518 ac_header_preproc=yes | |
25519 ;; | |
25520 no:yes:* ) | |
25521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
25522 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
25523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
25524 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
25525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
25526 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
25527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
25528 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
25529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
25530 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
25531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
25532 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
25533 | |
25534 ;; | |
25535 esac | |
25536 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25537 $as_echo_n "checking for $ac_header... " >&6; } | |
25538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
25539 $as_echo_n "(cached) " >&6 | |
25540 else | |
25541 eval "$as_ac_Header=\$ac_header_preproc" | |
25542 fi | |
25543 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
25544 $as_echo "$as_val"'` | |
25545 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
25546 $as_echo "$ac_res" >&6; } | |
25547 | |
25548 fi | |
25549 if test `eval 'as_val=${'$as_ac_Header'} | |
25550 $as_echo "$as_val"'` = yes; then | |
25551 cat >>confdefs.h <<_ACEOF | |
25552 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25553 _ACEOF | |
25554 | |
25555 fi | |
25556 | |
25557 done | |
25558 | |
25559 | |
25560 | |
25561 for ac_func in fork vfork | |
25562 do | |
25563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25564 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25565 $as_echo_n "checking for $ac_func... " >&6; } | |
25566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
25567 $as_echo_n "(cached) " >&6 | |
25568 else | |
25569 cat >conftest.$ac_ext <<_ACEOF | |
25570 /* confdefs.h. */ | |
25571 _ACEOF | |
25572 cat confdefs.h >>conftest.$ac_ext | |
25573 cat >>conftest.$ac_ext <<_ACEOF | |
25574 /* end confdefs.h. */ | |
25575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25576 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25577 #define $ac_func innocuous_$ac_func | |
25578 | |
25579 /* System header to define __stub macros and hopefully few prototypes, | |
25580 which can conflict with char $ac_func (); below. | |
25581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25582 <limits.h> exists even on freestanding compilers. */ | |
25583 | |
25584 #ifdef __STDC__ | |
25585 # include <limits.h> | |
25586 #else | |
25587 # include <assert.h> | |
25588 #endif | |
25589 | |
25590 #undef $ac_func | |
25591 | |
25592 /* Override any GCC internal prototype to avoid an error. | |
25593 Use char because int might match the return type of a GCC | |
25594 builtin and then its argument prototype would still apply. */ | |
25595 #ifdef __cplusplus | |
25596 extern "C" | |
25597 #endif | |
25598 char $ac_func (); | |
25599 /* The GNU C library defines this for functions which it implements | |
25600 to always fail with ENOSYS. Some functions are actually named | |
25601 something starting with __ and the normal name is an alias. */ | |
25602 #if defined __stub_$ac_func || defined __stub___$ac_func | |
25603 choke me | |
25604 #endif | |
25605 | |
25606 int | |
25607 main () | |
25608 { | |
25609 return $ac_func (); | |
25610 ; | |
25611 return 0; | |
25612 } | |
25613 _ACEOF | |
25614 rm -f conftest.$ac_objext conftest$ac_exeext | |
25615 if { (ac_try="$ac_link" | |
25616 case "(($ac_try" in | |
25617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25618 *) ac_try_echo=$ac_try;; | |
25619 esac | |
25620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25621 $as_echo "$ac_try_echo") >&5 | |
25622 (eval "$ac_link") 2>conftest.er1 | |
25623 ac_status=$? | |
25624 grep -v '^ *+' conftest.er1 >conftest.err | |
25625 rm -f conftest.er1 | |
25626 cat conftest.err >&5 | |
25627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25628 (exit $ac_status); } && { | |
25629 test -z "$ac_c_werror_flag" || | |
25630 test ! -s conftest.err | |
25631 } && test -s conftest$ac_exeext && { | |
25632 test "$cross_compiling" = yes || | |
25633 $as_test_x conftest$ac_exeext | |
25634 }; then | |
25635 eval "$as_ac_var=yes" | |
25636 else | |
25637 $as_echo "$as_me: failed program was:" >&5 | |
25638 sed 's/^/| /' conftest.$ac_ext >&5 | |
25639 | |
25640 eval "$as_ac_var=no" | |
25641 fi | |
25642 | |
25643 rm -rf conftest.dSYM | |
25644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
25645 conftest$ac_exeext conftest.$ac_ext | |
25646 fi | |
25647 ac_res=`eval 'as_val=${'$as_ac_var'} | |
25648 $as_echo "$as_val"'` | |
25649 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
25650 $as_echo "$ac_res" >&6; } | |
25651 if test `eval 'as_val=${'$as_ac_var'} | |
25652 $as_echo "$as_val"'` = yes; then | |
25653 cat >>confdefs.h <<_ACEOF | |
25654 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25655 _ACEOF | |
25656 | |
25657 fi | |
25658 done | |
25659 | |
25660 if test "x$ac_cv_func_fork" = xyes; then | |
25661 { $as_echo "$as_me:$LINENO: checking for working fork" >&5 | |
25662 $as_echo_n "checking for working fork... " >&6; } | |
25663 if test "${ac_cv_func_fork_works+set}" = set; then | |
25664 $as_echo_n "(cached) " >&6 | |
25665 else | |
25666 if test "$cross_compiling" = yes; then | |
25667 ac_cv_func_fork_works=cross | |
25668 else | |
25669 cat >conftest.$ac_ext <<_ACEOF | |
25670 /* confdefs.h. */ | |
25671 _ACEOF | |
25672 cat confdefs.h >>conftest.$ac_ext | |
25673 cat >>conftest.$ac_ext <<_ACEOF | |
25674 /* end confdefs.h. */ | |
25675 $ac_includes_default | |
25676 int | |
25677 main () | |
25678 { | |
25679 | |
25680 /* By Ruediger Kuhlmann. */ | |
25681 return fork () < 0; | |
25682 | |
25683 ; | |
25684 return 0; | |
25685 } | |
25686 _ACEOF | |
25687 rm -f conftest$ac_exeext | |
25688 if { (ac_try="$ac_link" | |
25689 case "(($ac_try" in | |
25690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25691 *) ac_try_echo=$ac_try;; | |
25692 esac | |
25693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25694 $as_echo "$ac_try_echo") >&5 | |
25695 (eval "$ac_link") 2>&5 | |
25696 ac_status=$? | |
25697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25699 { (case "(($ac_try" in | |
25700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25701 *) ac_try_echo=$ac_try;; | |
25702 esac | |
25703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25704 $as_echo "$ac_try_echo") >&5 | |
25705 (eval "$ac_try") 2>&5 | |
25706 ac_status=$? | |
25707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25708 (exit $ac_status); }; }; then | |
25709 ac_cv_func_fork_works=yes | 13425 ac_cv_func_fork_works=yes |
25710 else | 13426 else |
25711 $as_echo "$as_me: program exited with status $ac_status" >&5 | 13427 ac_cv_func_fork_works=no |
25712 $as_echo "$as_me: failed program was:" >&5 | 13428 fi |
25713 sed 's/^/| /' conftest.$ac_ext >&5 | 13429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
25714 | 13430 conftest.$ac_objext conftest.beam conftest.$ac_ext |
25715 ( exit $ac_status ) | 13431 fi |
25716 ac_cv_func_fork_works=no | 13432 |
25717 fi | 13433 fi |
25718 rm -rf conftest.dSYM | 13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
25719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
25720 fi | |
25721 | |
25722 | |
25723 fi | |
25724 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 | |
25725 $as_echo "$ac_cv_func_fork_works" >&6; } | 13435 $as_echo "$ac_cv_func_fork_works" >&6; } |
25726 | 13436 |
25727 else | 13437 else |
25728 ac_cv_func_fork_works=$ac_cv_func_fork | 13438 ac_cv_func_fork_works=$ac_cv_func_fork |
25729 fi | 13439 fi |
25735 ;; | 13445 ;; |
25736 *) | 13446 *) |
25737 ac_cv_func_fork_works=yes | 13447 ac_cv_func_fork_works=yes |
25738 ;; | 13448 ;; |
25739 esac | 13449 esac |
25740 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | 13450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
25741 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | 13451 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
25742 fi | 13452 fi |
25743 ac_cv_func_vfork_works=$ac_cv_func_vfork | 13453 ac_cv_func_vfork_works=$ac_cv_func_vfork |
25744 if test "x$ac_cv_func_vfork" = xyes; then | 13454 if test "x$ac_cv_func_vfork" = xyes; then |
25745 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 | 13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
25746 $as_echo_n "checking for working vfork... " >&6; } | 13456 $as_echo_n "checking for working vfork... " >&6; } |
25747 if test "${ac_cv_func_vfork_works+set}" = set; then | 13457 if test "${ac_cv_func_vfork_works+set}" = set; then : |
25748 $as_echo_n "(cached) " >&6 | 13458 $as_echo_n "(cached) " >&6 |
25749 else | 13459 else |
25750 if test "$cross_compiling" = yes; then | 13460 if test "$cross_compiling" = yes; then : |
25751 ac_cv_func_vfork_works=cross | 13461 ac_cv_func_vfork_works=cross |
25752 else | 13462 else |
25753 cat >conftest.$ac_ext <<_ACEOF | 13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25754 /* confdefs.h. */ | |
25755 _ACEOF | |
25756 cat confdefs.h >>conftest.$ac_ext | |
25757 cat >>conftest.$ac_ext <<_ACEOF | |
25758 /* end confdefs.h. */ | 13464 /* end confdefs.h. */ |
25759 /* Thanks to Paul Eggert for this test. */ | 13465 /* Thanks to Paul Eggert for this test. */ |
25760 $ac_includes_default | 13466 $ac_includes_default |
25761 #include <sys/wait.h> | 13467 #include <sys/wait.h> |
25762 #ifdef HAVE_VFORK_H | 13468 #ifdef HAVE_VFORK_H |
25844 || fstat(fileno(stdout), &st) != 0 | 13550 || fstat(fileno(stdout), &st) != 0 |
25845 ); | 13551 ); |
25846 } | 13552 } |
25847 } | 13553 } |
25848 _ACEOF | 13554 _ACEOF |
25849 rm -f conftest$ac_exeext | 13555 if ac_fn_c_try_run "$LINENO"; then : |
25850 if { (ac_try="$ac_link" | |
25851 case "(($ac_try" in | |
25852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25853 *) ac_try_echo=$ac_try;; | |
25854 esac | |
25855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25856 $as_echo "$ac_try_echo") >&5 | |
25857 (eval "$ac_link") 2>&5 | |
25858 ac_status=$? | |
25859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25861 { (case "(($ac_try" in | |
25862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25863 *) ac_try_echo=$ac_try;; | |
25864 esac | |
25865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25866 $as_echo "$ac_try_echo") >&5 | |
25867 (eval "$ac_try") 2>&5 | |
25868 ac_status=$? | |
25869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25870 (exit $ac_status); }; }; then | |
25871 ac_cv_func_vfork_works=yes | 13556 ac_cv_func_vfork_works=yes |
25872 else | 13557 else |
25873 $as_echo "$as_me: program exited with status $ac_status" >&5 | 13558 ac_cv_func_vfork_works=no |
25874 $as_echo "$as_me: failed program was:" >&5 | 13559 fi |
25875 sed 's/^/| /' conftest.$ac_ext >&5 | 13560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
25876 | 13561 conftest.$ac_objext conftest.beam conftest.$ac_ext |
25877 ( exit $ac_status ) | 13562 fi |
25878 ac_cv_func_vfork_works=no | 13563 |
25879 fi | 13564 fi |
25880 rm -rf conftest.dSYM | 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
25881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
25882 fi | |
25883 | |
25884 | |
25885 fi | |
25886 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 | |
25887 $as_echo "$ac_cv_func_vfork_works" >&6; } | 13566 $as_echo "$ac_cv_func_vfork_works" >&6; } |
25888 | 13567 |
25889 fi; | 13568 fi; |
25890 if test "x$ac_cv_func_fork_works" = xcross; then | 13569 if test "x$ac_cv_func_fork_works" = xcross; then |
25891 ac_cv_func_vfork_works=$ac_cv_func_vfork | 13570 ac_cv_func_vfork_works=$ac_cv_func_vfork |
25892 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | 13571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
25893 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | 13572 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
25894 fi | 13573 fi |
25895 | 13574 |
25896 if test "x$ac_cv_func_vfork_works" = xyes; then | 13575 if test "x$ac_cv_func_vfork_works" = xyes; then |
25897 | 13576 |
25898 cat >>confdefs.h <<\_ACEOF | 13577 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
25899 #define HAVE_WORKING_VFORK 1 | 13578 |
25900 _ACEOF | 13579 else |
25901 | 13580 |
25902 else | 13581 $as_echo "#define vfork fork" >>confdefs.h |
25903 | |
25904 cat >>confdefs.h <<\_ACEOF | |
25905 #define vfork fork | |
25906 _ACEOF | |
25907 | 13582 |
25908 fi | 13583 fi |
25909 if test "x$ac_cv_func_fork_works" = xyes; then | 13584 if test "x$ac_cv_func_fork_works" = xyes; then |
25910 | 13585 |
25911 cat >>confdefs.h <<\_ACEOF | 13586 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
25912 #define HAVE_WORKING_FORK 1 | 13587 |
25913 _ACEOF | 13588 fi |
25914 | 13589 |
25915 fi | 13590 |
25916 | 13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
25917 | |
25918 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 | |
25919 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | 13592 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
25920 if test "${emacs_cv_langinfo_codeset+set}" = set; then | 13593 if test "${emacs_cv_langinfo_codeset+set}" = set; then : |
25921 $as_echo_n "(cached) " >&6 | 13594 $as_echo_n "(cached) " >&6 |
25922 else | 13595 else |
25923 cat >conftest.$ac_ext <<_ACEOF | 13596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25924 /* confdefs.h. */ | |
25925 _ACEOF | |
25926 cat confdefs.h >>conftest.$ac_ext | |
25927 cat >>conftest.$ac_ext <<_ACEOF | |
25928 /* end confdefs.h. */ | 13597 /* end confdefs.h. */ |
25929 #include <langinfo.h> | 13598 #include <langinfo.h> |
25930 int | 13599 int |
25931 main () | 13600 main () |
25932 { | 13601 { |
25933 char* cs = nl_langinfo(CODESET); | 13602 char* cs = nl_langinfo(CODESET); |
25934 ; | 13603 ; |
25935 return 0; | 13604 return 0; |
25936 } | 13605 } |
25937 _ACEOF | 13606 _ACEOF |
25938 rm -f conftest.$ac_objext conftest$ac_exeext | 13607 if ac_fn_c_try_link "$LINENO"; then : |
25939 if { (ac_try="$ac_link" | |
25940 case "(($ac_try" in | |
25941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25942 *) ac_try_echo=$ac_try;; | |
25943 esac | |
25944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25945 $as_echo "$ac_try_echo") >&5 | |
25946 (eval "$ac_link") 2>conftest.er1 | |
25947 ac_status=$? | |
25948 grep -v '^ *+' conftest.er1 >conftest.err | |
25949 rm -f conftest.er1 | |
25950 cat conftest.err >&5 | |
25951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25952 (exit $ac_status); } && { | |
25953 test -z "$ac_c_werror_flag" || | |
25954 test ! -s conftest.err | |
25955 } && test -s conftest$ac_exeext && { | |
25956 test "$cross_compiling" = yes || | |
25957 $as_test_x conftest$ac_exeext | |
25958 }; then | |
25959 emacs_cv_langinfo_codeset=yes | 13608 emacs_cv_langinfo_codeset=yes |
25960 else | 13609 else |
25961 $as_echo "$as_me: failed program was:" >&5 | 13610 emacs_cv_langinfo_codeset=no |
25962 sed 's/^/| /' conftest.$ac_ext >&5 | 13611 fi |
25963 | 13612 rm -f core conftest.err conftest.$ac_objext \ |
25964 emacs_cv_langinfo_codeset=no | 13613 conftest$ac_exeext conftest.$ac_ext |
25965 fi | 13614 |
25966 | 13615 fi |
25967 rm -rf conftest.dSYM | 13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5 |
25968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
25969 conftest$ac_exeext conftest.$ac_ext | |
25970 | |
25971 fi | |
25972 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 | |
25973 $as_echo "$emacs_cv_langinfo_codeset" >&6; } | 13617 $as_echo "$emacs_cv_langinfo_codeset" >&6; } |
25974 if test $emacs_cv_langinfo_codeset = yes; then | 13618 if test $emacs_cv_langinfo_codeset = yes; then |
25975 | 13619 |
25976 cat >>confdefs.h <<\_ACEOF | 13620 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
25977 #define HAVE_LANGINFO_CODESET 1 | 13621 |
25978 _ACEOF | 13622 fi |
25979 | 13623 |
25980 fi | 13624 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
25981 | 13625 if test "x$ac_cv_type_size_t" = x""yes; then : |
25982 { $as_echo "$as_me:$LINENO: checking for size_t" >&5 | |
25983 $as_echo_n "checking for size_t... " >&6; } | |
25984 if test "${ac_cv_type_size_t+set}" = set; then | |
25985 $as_echo_n "(cached) " >&6 | |
25986 else | |
25987 ac_cv_type_size_t=no | |
25988 cat >conftest.$ac_ext <<_ACEOF | |
25989 /* confdefs.h. */ | |
25990 _ACEOF | |
25991 cat confdefs.h >>conftest.$ac_ext | |
25992 cat >>conftest.$ac_ext <<_ACEOF | |
25993 /* end confdefs.h. */ | |
25994 $ac_includes_default | |
25995 int | |
25996 main () | |
25997 { | |
25998 if (sizeof (size_t)) | |
25999 return 0; | |
26000 ; | |
26001 return 0; | |
26002 } | |
26003 _ACEOF | |
26004 rm -f conftest.$ac_objext | |
26005 if { (ac_try="$ac_compile" | |
26006 case "(($ac_try" in | |
26007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26008 *) ac_try_echo=$ac_try;; | |
26009 esac | |
26010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26011 $as_echo "$ac_try_echo") >&5 | |
26012 (eval "$ac_compile") 2>conftest.er1 | |
26013 ac_status=$? | |
26014 grep -v '^ *+' conftest.er1 >conftest.err | |
26015 rm -f conftest.er1 | |
26016 cat conftest.err >&5 | |
26017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26018 (exit $ac_status); } && { | |
26019 test -z "$ac_c_werror_flag" || | |
26020 test ! -s conftest.err | |
26021 } && test -s conftest.$ac_objext; then | |
26022 cat >conftest.$ac_ext <<_ACEOF | |
26023 /* confdefs.h. */ | |
26024 _ACEOF | |
26025 cat confdefs.h >>conftest.$ac_ext | |
26026 cat >>conftest.$ac_ext <<_ACEOF | |
26027 /* end confdefs.h. */ | |
26028 $ac_includes_default | |
26029 int | |
26030 main () | |
26031 { | |
26032 if (sizeof ((size_t))) | |
26033 return 0; | |
26034 ; | |
26035 return 0; | |
26036 } | |
26037 _ACEOF | |
26038 rm -f conftest.$ac_objext | |
26039 if { (ac_try="$ac_compile" | |
26040 case "(($ac_try" in | |
26041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26042 *) ac_try_echo=$ac_try;; | |
26043 esac | |
26044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26045 $as_echo "$ac_try_echo") >&5 | |
26046 (eval "$ac_compile") 2>conftest.er1 | |
26047 ac_status=$? | |
26048 grep -v '^ *+' conftest.er1 >conftest.err | |
26049 rm -f conftest.er1 | |
26050 cat conftest.err >&5 | |
26051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26052 (exit $ac_status); } && { | |
26053 test -z "$ac_c_werror_flag" || | |
26054 test ! -s conftest.err | |
26055 } && test -s conftest.$ac_objext; then | |
26056 : | |
26057 else | |
26058 $as_echo "$as_me: failed program was:" >&5 | |
26059 sed 's/^/| /' conftest.$ac_ext >&5 | |
26060 | |
26061 ac_cv_type_size_t=yes | |
26062 fi | |
26063 | |
26064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26065 else | |
26066 $as_echo "$as_me: failed program was:" >&5 | |
26067 sed 's/^/| /' conftest.$ac_ext >&5 | |
26068 | |
26069 | |
26070 fi | |
26071 | |
26072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26073 fi | |
26074 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
26075 $as_echo "$ac_cv_type_size_t" >&6; } | |
26076 if test $ac_cv_type_size_t = yes; then | |
26077 | 13626 |
26078 cat >>confdefs.h <<_ACEOF | 13627 cat >>confdefs.h <<_ACEOF |
26079 #define HAVE_SIZE_T 1 | 13628 #define HAVE_SIZE_T 1 |
26080 _ACEOF | 13629 _ACEOF |
26081 | 13630 |
26082 | 13631 |
26083 fi | 13632 fi |
26084 | 13633 |
26085 | 13634 |
26086 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5 | 13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 |
26087 $as_echo_n "checking for mbstate_t... " >&6; } | 13636 $as_echo_n "checking for mbstate_t... " >&6; } |
26088 if test "${ac_cv_type_mbstate_t+set}" = set; then | 13637 if test "${ac_cv_type_mbstate_t+set}" = set; then : |
26089 $as_echo_n "(cached) " >&6 | 13638 $as_echo_n "(cached) " >&6 |
26090 else | 13639 else |
26091 cat >conftest.$ac_ext <<_ACEOF | 13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
26092 /* confdefs.h. */ | |
26093 _ACEOF | |
26094 cat confdefs.h >>conftest.$ac_ext | |
26095 cat >>conftest.$ac_ext <<_ACEOF | |
26096 /* end confdefs.h. */ | 13641 /* end confdefs.h. */ |
26097 $ac_includes_default | 13642 $ac_includes_default |
26098 # include <wchar.h> | 13643 # include <wchar.h> |
26099 int | 13644 int |
26100 main () | 13645 main () |
26102 mbstate_t x; return sizeof x; | 13647 mbstate_t x; return sizeof x; |
26103 ; | 13648 ; |
26104 return 0; | 13649 return 0; |
26105 } | 13650 } |
26106 _ACEOF | 13651 _ACEOF |
26107 rm -f conftest.$ac_objext | 13652 if ac_fn_c_try_compile "$LINENO"; then : |
26108 if { (ac_try="$ac_compile" | |
26109 case "(($ac_try" in | |
26110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26111 *) ac_try_echo=$ac_try;; | |
26112 esac | |
26113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26114 $as_echo "$ac_try_echo") >&5 | |
26115 (eval "$ac_compile") 2>conftest.er1 | |
26116 ac_status=$? | |
26117 grep -v '^ *+' conftest.er1 >conftest.err | |
26118 rm -f conftest.er1 | |
26119 cat conftest.err >&5 | |
26120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26121 (exit $ac_status); } && { | |
26122 test -z "$ac_c_werror_flag" || | |
26123 test ! -s conftest.err | |
26124 } && test -s conftest.$ac_objext; then | |
26125 ac_cv_type_mbstate_t=yes | 13653 ac_cv_type_mbstate_t=yes |
26126 else | 13654 else |
26127 $as_echo "$as_me: failed program was:" >&5 | 13655 ac_cv_type_mbstate_t=no |
26128 sed 's/^/| /' conftest.$ac_ext >&5 | 13656 fi |
26129 | |
26130 ac_cv_type_mbstate_t=no | |
26131 fi | |
26132 | |
26133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
26134 fi | 13658 fi |
26135 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | 13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 |
26136 $as_echo "$ac_cv_type_mbstate_t" >&6; } | 13660 $as_echo "$ac_cv_type_mbstate_t" >&6; } |
26137 if test $ac_cv_type_mbstate_t = yes; then | 13661 if test $ac_cv_type_mbstate_t = yes; then |
26138 | 13662 |
26139 cat >>confdefs.h <<\_ACEOF | 13663 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h |
26140 #define HAVE_MBSTATE_T 1 | |
26141 _ACEOF | |
26142 | 13664 |
26143 else | 13665 else |
26144 | 13666 |
26145 cat >>confdefs.h <<\_ACEOF | 13667 $as_echo "#define mbstate_t int" >>confdefs.h |
26146 #define mbstate_t int | |
26147 _ACEOF | |
26148 | 13668 |
26149 fi | 13669 fi |
26150 | 13670 |
26151 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5 | 13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5 |
26152 $as_echo_n "checking for C restrict keyword... " >&6; } | 13672 $as_echo_n "checking for C restrict keyword... " >&6; } |
26153 if test "${emacs_cv_c_restrict+set}" = set; then | 13673 if test "${emacs_cv_c_restrict+set}" = set; then : |
26154 $as_echo_n "(cached) " >&6 | 13674 $as_echo_n "(cached) " >&6 |
26155 else | 13675 else |
26156 cat >conftest.$ac_ext <<_ACEOF | 13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
26157 /* confdefs.h. */ | |
26158 _ACEOF | |
26159 cat confdefs.h >>conftest.$ac_ext | |
26160 cat >>conftest.$ac_ext <<_ACEOF | |
26161 /* end confdefs.h. */ | 13677 /* end confdefs.h. */ |
26162 void fred (int *restrict x); | 13678 void fred (int *restrict x); |
26163 int | 13679 int |
26164 main () | 13680 main () |
26165 { | 13681 { |
26166 | 13682 |
26167 ; | 13683 ; |
26168 return 0; | 13684 return 0; |
26169 } | 13685 } |
26170 _ACEOF | 13686 _ACEOF |
26171 rm -f conftest.$ac_objext | 13687 if ac_fn_c_try_compile "$LINENO"; then : |
26172 if { (ac_try="$ac_compile" | |
26173 case "(($ac_try" in | |
26174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26175 *) ac_try_echo=$ac_try;; | |
26176 esac | |
26177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26178 $as_echo "$ac_try_echo") >&5 | |
26179 (eval "$ac_compile") 2>conftest.er1 | |
26180 ac_status=$? | |
26181 grep -v '^ *+' conftest.er1 >conftest.err | |
26182 rm -f conftest.er1 | |
26183 cat conftest.err >&5 | |
26184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26185 (exit $ac_status); } && { | |
26186 test -z "$ac_c_werror_flag" || | |
26187 test ! -s conftest.err | |
26188 } && test -s conftest.$ac_objext; then | |
26189 emacs_cv_c_restrict=yes | 13688 emacs_cv_c_restrict=yes |
26190 else | 13689 else |
26191 $as_echo "$as_me: failed program was:" >&5 | 13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
26192 sed 's/^/| /' conftest.$ac_ext >&5 | |
26193 | |
26194 cat >conftest.$ac_ext <<_ACEOF | |
26195 /* confdefs.h. */ | |
26196 _ACEOF | |
26197 cat confdefs.h >>conftest.$ac_ext | |
26198 cat >>conftest.$ac_ext <<_ACEOF | |
26199 /* end confdefs.h. */ | 13691 /* end confdefs.h. */ |
26200 void fred (int *__restrict x); | 13692 void fred (int *__restrict x); |
26201 int | 13693 int |
26202 main () | 13694 main () |
26203 { | 13695 { |
26204 | 13696 |
26205 ; | 13697 ; |
26206 return 0; | 13698 return 0; |
26207 } | 13699 } |
26208 _ACEOF | 13700 _ACEOF |
26209 rm -f conftest.$ac_objext | 13701 if ac_fn_c_try_compile "$LINENO"; then : |
26210 if { (ac_try="$ac_compile" | |
26211 case "(($ac_try" in | |
26212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26213 *) ac_try_echo=$ac_try;; | |
26214 esac | |
26215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26216 $as_echo "$ac_try_echo") >&5 | |
26217 (eval "$ac_compile") 2>conftest.er1 | |
26218 ac_status=$? | |
26219 grep -v '^ *+' conftest.er1 >conftest.err | |
26220 rm -f conftest.er1 | |
26221 cat conftest.err >&5 | |
26222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26223 (exit $ac_status); } && { | |
26224 test -z "$ac_c_werror_flag" || | |
26225 test ! -s conftest.err | |
26226 } && test -s conftest.$ac_objext; then | |
26227 emacs_cv_c_restrict=__restrict | 13702 emacs_cv_c_restrict=__restrict |
26228 else | 13703 else |
26229 $as_echo "$as_me: failed program was:" >&5 | 13704 emacs_cv_c_restrict=no |
26230 sed 's/^/| /' conftest.$ac_ext >&5 | 13705 fi |
26231 | |
26232 emacs_cv_c_restrict=no | |
26233 fi | |
26234 | |
26235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 13706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
26236 fi | 13707 fi |
26237 | |
26238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 13708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
26239 fi | 13709 fi |
26240 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 | 13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5 |
26241 $as_echo "$emacs_cv_c_restrict" >&6; } | 13711 $as_echo "$emacs_cv_c_restrict" >&6; } |
26242 case "$emacs_cv_c_restrict" in | 13712 case "$emacs_cv_c_restrict" in |
26243 yes) emacs_restrict=restrict;; | 13713 yes) emacs_restrict=restrict;; |
26244 no) emacs_restrict="";; | 13714 no) emacs_restrict="";; |
26245 *) emacs_restrict="$emacs_cv_c_restrict";; | 13715 *) emacs_restrict="$emacs_cv_c_restrict";; |
26250 #define __restrict $emacs_restrict | 13720 #define __restrict $emacs_restrict |
26251 _ACEOF | 13721 _ACEOF |
26252 | 13722 |
26253 fi | 13723 fi |
26254 | 13724 |
26255 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 | 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5 |
26256 $as_echo_n "checking for C restricted array declarations... " >&6; } | 13726 $as_echo_n "checking for C restricted array declarations... " >&6; } |
26257 if test "${emacs_cv_c_restrict_arr+set}" = set; then | 13727 if test "${emacs_cv_c_restrict_arr+set}" = set; then : |
26258 $as_echo_n "(cached) " >&6 | 13728 $as_echo_n "(cached) " >&6 |
26259 else | 13729 else |
26260 cat >conftest.$ac_ext <<_ACEOF | 13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
26261 /* confdefs.h. */ | |
26262 _ACEOF | |
26263 cat confdefs.h >>conftest.$ac_ext | |
26264 cat >>conftest.$ac_ext <<_ACEOF | |
26265 /* end confdefs.h. */ | 13731 /* end confdefs.h. */ |
26266 void fred (int x[__restrict]); | 13732 void fred (int x[__restrict]); |
26267 int | 13733 int |
26268 main () | 13734 main () |
26269 { | 13735 { |
26270 | 13736 |
26271 ; | 13737 ; |
26272 return 0; | 13738 return 0; |
26273 } | 13739 } |
26274 _ACEOF | 13740 _ACEOF |
26275 rm -f conftest.$ac_objext | 13741 if ac_fn_c_try_compile "$LINENO"; then : |
26276 if { (ac_try="$ac_compile" | |
26277 case "(($ac_try" in | |
26278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26279 *) ac_try_echo=$ac_try;; | |
26280 esac | |
26281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
26282 $as_echo "$ac_try_echo") >&5 | |
26283 (eval "$ac_compile") 2>conftest.er1 | |
26284 ac_status=$? | |
26285 grep -v '^ *+' conftest.er1 >conftest.err | |
26286 rm -f conftest.er1 | |
26287 cat conftest.err >&5 | |
26288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26289 (exit $ac_status); } && { | |
26290 test -z "$ac_c_werror_flag" || | |
26291 test ! -s conftest.err | |
26292 } && test -s conftest.$ac_objext; then | |
26293 emacs_cv_c_restrict_arr=yes | 13742 emacs_cv_c_restrict_arr=yes |
26294 else | 13743 else |
26295 $as_echo "$as_me: failed program was:" >&5 | 13744 emacs_cv_c_restrict_arr=no |
26296 sed 's/^/| /' conftest.$ac_ext >&5 | 13745 fi |
26297 | |
26298 emacs_cv_c_restrict_arr=no | |
26299 fi | |
26300 | |
26301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 13746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
26302 fi | 13747 fi |
26303 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 | 13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5 |
26304 $as_echo "$emacs_cv_c_restrict_arr" >&6; } | 13749 $as_echo "$emacs_cv_c_restrict_arr" >&6; } |
26305 if test "$emacs_cv_c_restrict_arr" = yes; then | 13750 if test "$emacs_cv_c_restrict_arr" = yes; then |
26306 | 13751 |
26307 cat >>confdefs.h <<\_ACEOF | 13752 $as_echo "#define __restrict_arr __restrict" >>confdefs.h |
26308 #define __restrict_arr __restrict | |
26309 _ACEOF | |
26310 | 13753 |
26311 fi | 13754 fi |
26312 | 13755 |
26313 | 13756 |
26314 | 13757 |
26319 ## Hack to detect a buggy GCC version. | 13762 ## Hack to detect a buggy GCC version. |
26320 if test "x$GCC" = xyes \ | 13763 if test "x$GCC" = xyes \ |
26321 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ | 13764 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ |
26322 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \ | 13765 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \ |
26323 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then | 13766 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then |
26324 { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5 | 13767 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5 |
26325 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;} | |
26326 { (exit 1); exit 1; }; } | |
26327 fi | 13768 fi |
26328 | 13769 |
26329 #### Find out which version of Emacs this is. | 13770 #### Find out which version of Emacs this is. |
26330 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \ | 13771 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \ |
26331 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | 13772 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` |
26332 if test x"${version}" = x; then | 13773 if test x"${version}" = x; then |
26333 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&5 | 13774 as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5 |
26334 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&2;} | |
26335 { (exit 1); exit 1; }; } | |
26336 fi | 13775 fi |
26337 if test x"${version}" != x"$PACKAGE_VERSION"; then | 13776 if test x"${version}" != x"$PACKAGE_VERSION"; then |
26338 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5 | 13777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5 |
26339 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;} | 13778 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;} |
26340 fi | 13779 fi |
26341 | 13780 |
26342 ### Specify what sort of things we'll be editing into Makefile and config.h. | 13781 ### Specify what sort of things we'll be editing into Makefile and config.h. |
26343 ### Use configuration here uncanonicalized to avoid exceeding size limits. | 13782 ### Use configuration here uncanonicalized to avoid exceeding size limits. |
26344 | 13783 |
26345 | 13784 |
26346 ## Unused? | 13785 ## Unused? |
26347 | |
26348 | 13786 |
26349 | 13787 |
26350 | 13788 |
26351 | 13789 |
26352 | 13790 |
26408 XMENU_OBJ= | 13846 XMENU_OBJ= |
26409 XOBJ= | 13847 XOBJ= |
26410 FONT_OBJ= | 13848 FONT_OBJ= |
26411 if test "${HAVE_X_WINDOWS}" = "yes" ; then | 13849 if test "${HAVE_X_WINDOWS}" = "yes" ; then |
26412 | 13850 |
26413 cat >>confdefs.h <<\_ACEOF | 13851 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h |
26414 #define HAVE_X_WINDOWS 1 | |
26415 _ACEOF | |
26416 | 13852 |
26417 XMENU_OBJ=xmenu.o | 13853 XMENU_OBJ=xmenu.o |
26418 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o" | 13854 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o" |
26419 FONT_OBJ=xfont.o | 13855 FONT_OBJ=xfont.o |
26420 if test "$HAVE_XFT" = "yes"; then | 13856 if test "$HAVE_XFT" = "yes"; then |
26431 WIDGET_OBJ= | 13867 WIDGET_OBJ= |
26432 MOTIF_LIBW= | 13868 MOTIF_LIBW= |
26433 if test "${USE_X_TOOLKIT}" != "none" ; then | 13869 if test "${USE_X_TOOLKIT}" != "none" ; then |
26434 WIDGET_OBJ=widget.o | 13870 WIDGET_OBJ=widget.o |
26435 | 13871 |
26436 cat >>confdefs.h <<\_ACEOF | 13872 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h |
26437 #define USE_X_TOOLKIT 1 | |
26438 _ACEOF | |
26439 | 13873 |
26440 if test "${USE_X_TOOLKIT}" = "LUCID"; then | 13874 if test "${USE_X_TOOLKIT}" = "LUCID"; then |
26441 | 13875 |
26442 cat >>confdefs.h <<\_ACEOF | 13876 $as_echo "#define USE_LUCID 1" >>confdefs.h |
26443 #define USE_LUCID 1 | |
26444 _ACEOF | |
26445 | 13877 |
26446 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then | 13878 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then |
26447 | 13879 |
26448 cat >>confdefs.h <<\_ACEOF | 13880 $as_echo "#define USE_MOTIF 1" >>confdefs.h |
26449 #define USE_MOTIF 1 | |
26450 _ACEOF | |
26451 | 13881 |
26452 MOTIF_LIBW=-lXm | 13882 MOTIF_LIBW=-lXm |
26453 case "$opsys" in | 13883 case "$opsys" in |
26454 gnu-linux) | 13884 gnu-linux) |
26455 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed. | 13885 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed. |
26492 ## The X Menu stuff is present in the X10 distribution, but missing | 13922 ## The X Menu stuff is present in the X10 distribution, but missing |
26493 ## from X11. If we have X10, just use the installed library; | 13923 ## from X11. If we have X10, just use the installed library; |
26494 ## otherwise, use our own copy. | 13924 ## otherwise, use our own copy. |
26495 if test "${HAVE_X11}" = "yes" ; then | 13925 if test "${HAVE_X11}" = "yes" ; then |
26496 | 13926 |
26497 cat >>confdefs.h <<\_ACEOF | 13927 $as_echo "#define HAVE_X11 1" >>confdefs.h |
26498 #define HAVE_X11 1 | |
26499 _ACEOF | |
26500 | 13928 |
26501 | 13929 |
26502 if test "$USE_X_TOOLKIT" = "none"; then | 13930 if test "$USE_X_TOOLKIT" = "none"; then |
26503 OLDXMENU="\${oldXMenudir}libXMenu11.a" | 13931 OLDXMENU="\${oldXMenudir}libXMenu11.a" |
26504 else | 13932 else |
26534 | 13962 |
26535 | 13963 |
26536 | 13964 |
26537 if test "${HAVE_MENUS}" = "yes" ; then | 13965 if test "${HAVE_MENUS}" = "yes" ; then |
26538 | 13966 |
26539 cat >>confdefs.h <<\_ACEOF | 13967 $as_echo "#define HAVE_MENUS 1" >>confdefs.h |
26540 #define HAVE_MENUS 1 | |
26541 _ACEOF | |
26542 | 13968 |
26543 fi | 13969 fi |
26544 | 13970 |
26545 if test "${GNU_MALLOC}" = "yes" ; then | 13971 if test "${GNU_MALLOC}" = "yes" ; then |
26546 | 13972 |
26547 cat >>confdefs.h <<\_ACEOF | 13973 $as_echo "#define GNU_MALLOC 1" >>confdefs.h |
26548 #define GNU_MALLOC 1 | |
26549 _ACEOF | |
26550 | 13974 |
26551 fi | 13975 fi |
26552 | 13976 |
26553 RALLOC_OBJ= | 13977 RALLOC_OBJ= |
26554 if test "${REL_ALLOC}" = "yes" ; then | 13978 if test "${REL_ALLOC}" = "yes" ; then |
26555 | 13979 |
26556 cat >>confdefs.h <<\_ACEOF | 13980 $as_echo "#define REL_ALLOC 1" >>confdefs.h |
26557 #define REL_ALLOC 1 | |
26558 _ACEOF | |
26559 | 13981 |
26560 | 13982 |
26561 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o | 13983 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o |
26562 fi | 13984 fi |
26563 | 13985 |
26656 POST_EDIT_LDFLAGS= | 14078 POST_EDIT_LDFLAGS= |
26657 if test "x$ORDINARY_LINK" = "xyes"; then | 14079 if test "x$ORDINARY_LINK" = "xyes"; then |
26658 | 14080 |
26659 LINKER="\$(CC)" | 14081 LINKER="\$(CC)" |
26660 | 14082 |
26661 cat >>confdefs.h <<\_ACEOF | 14083 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h |
26662 #define ORDINARY_LINK 1 | |
26663 _ACEOF | |
26664 | 14084 |
26665 | 14085 |
26666 ## The system files defining neither ORDINARY_LINK nor LINKER are: | 14086 ## The system files defining neither ORDINARY_LINK nor LINKER are: |
26667 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*. | 14087 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*. |
26668 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then | 14088 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then |
26729 TOOLTIP_SUPPORT= | 14149 TOOLTIP_SUPPORT= |
26730 WINDOW_SUPPORT= | 14150 WINDOW_SUPPORT= |
26731 ## If we're using X11/GNUstep, define some consequences. | 14151 ## If we're using X11/GNUstep, define some consequences. |
26732 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then | 14152 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then |
26733 | 14153 |
26734 cat >>confdefs.h <<\_ACEOF | 14154 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h |
26735 #define HAVE_WINDOW_SYSTEM 1 | 14155 |
26736 _ACEOF | 14156 |
26737 | 14157 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h |
26738 | |
26739 cat >>confdefs.h <<\_ACEOF | |
26740 #define HAVE_MOUSE 1 | |
26741 _ACEOF | |
26742 | 14158 |
26743 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)" | 14159 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)" |
26744 TOOLTIP_SUPPORT="\${lispsource}mouse.elc" | 14160 TOOLTIP_SUPPORT="\${lispsource}mouse.elc" |
26745 | 14161 |
26746 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)" | 14162 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)" |
26747 test "$HAVE_X_WINDOWS" = "yes" && \ | 14163 test "$HAVE_X_WINDOWS" = "yes" && \ |
26748 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)" | 14164 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)" |
26749 | 14165 |
26750 fi | 14166 fi |
26751 | |
26752 | |
26753 | 14167 |
26754 | 14168 |
26755 | 14169 |
26756 | 14170 |
26757 | 14171 |
26872 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 14286 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
26873 eval ac_val=\$$ac_var | 14287 eval ac_val=\$$ac_var |
26874 case $ac_val in #( | 14288 case $ac_val in #( |
26875 *${as_nl}*) | 14289 *${as_nl}*) |
26876 case $ac_var in #( | 14290 case $ac_var in #( |
26877 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | 14291 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
26878 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | 14292 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
26879 esac | 14293 esac |
26880 case $ac_var in #( | 14294 case $ac_var in #( |
26881 _ | IFS | as_nl) ;; #( | 14295 _ | IFS | as_nl) ;; #( |
26882 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 14296 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
26883 *) $as_unset $ac_var ;; | 14297 *) { eval $ac_var=; unset $ac_var;} ;; |
26884 esac ;; | 14298 esac ;; |
26885 esac | 14299 esac |
26886 done | 14300 done |
26887 | 14301 |
26888 (set) 2>&1 | | 14302 (set) 2>&1 | |
26889 case $as_nl`(ac_space=' '; set) 2>&1` in #( | 14303 case $as_nl`(ac_space=' '; set) 2>&1` in #( |
26890 *${as_nl}ac_space=\ *) | 14304 *${as_nl}ac_space=\ *) |
26891 # `set' does not quote correctly, so add quotes (double-quote | 14305 # `set' does not quote correctly, so add quotes: double-quote |
26892 # substitution turns \\\\ into \\, and sed turns \\ into \). | 14306 # substitution turns \\\\ into \\, and sed turns \\ into \. |
26893 sed -n \ | 14307 sed -n \ |
26894 "s/'/'\\\\''/g; | 14308 "s/'/'\\\\''/g; |
26895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 14309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
26896 ;; #( | 14310 ;; #( |
26897 *) | 14311 *) |
26910 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 14324 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
26911 :end' >>confcache | 14325 :end' >>confcache |
26912 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 14326 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
26913 if test -w "$cache_file"; then | 14327 if test -w "$cache_file"; then |
26914 test "x$cache_file" != "x/dev/null" && | 14328 test "x$cache_file" != "x/dev/null" && |
26915 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | 14329 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
26916 $as_echo "$as_me: updating cache $cache_file" >&6;} | 14330 $as_echo "$as_me: updating cache $cache_file" >&6;} |
26917 cat confcache >$cache_file | 14331 cat confcache >$cache_file |
26918 else | 14332 else |
26919 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | 14333 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
26920 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 14334 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
26921 fi | 14335 fi |
26922 fi | 14336 fi |
26923 rm -f confcache | 14337 rm -f confcache |
26924 | 14338 |
26934 # 1. Remove the extension, and $U if already installed. | 14348 # 1. Remove the extension, and $U if already installed. |
26935 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 14349 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
26936 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 14350 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
26937 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | 14351 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
26938 # will be set to the directory where LIBOBJS objects are built. | 14352 # will be set to the directory where LIBOBJS objects are built. |
26939 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 14353 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
26940 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | 14354 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
26941 done | 14355 done |
26942 LIBOBJS=$ac_libobjs | 14356 LIBOBJS=$ac_libobjs |
26943 | 14357 |
26944 LTLIBOBJS=$ac_ltlibobjs | 14358 LTLIBOBJS=$ac_ltlibobjs |
26945 | 14359 |
26947 | 14361 |
26948 : ${CONFIG_STATUS=./config.status} | 14362 : ${CONFIG_STATUS=./config.status} |
26949 ac_write_fail=0 | 14363 ac_write_fail=0 |
26950 ac_clean_files_save=$ac_clean_files | 14364 ac_clean_files_save=$ac_clean_files |
26951 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 14365 ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
26952 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | 14366 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
26953 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 14367 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
26954 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 14368 as_write_fail=0 |
14369 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
26955 #! $SHELL | 14370 #! $SHELL |
26956 # Generated by $as_me. | 14371 # Generated by $as_me. |
26957 # Run this file to recreate the current configuration. | 14372 # Run this file to recreate the current configuration. |
26958 # Compiler output produced by configure, useful for debugging | 14373 # Compiler output produced by configure, useful for debugging |
26959 # configure, is in config.log if it exists. | 14374 # configure, is in config.log if it exists. |
26960 | 14375 |
26961 debug=false | 14376 debug=false |
26962 ac_cs_recheck=false | 14377 ac_cs_recheck=false |
26963 ac_cs_silent=false | 14378 ac_cs_silent=false |
14379 | |
26964 SHELL=\${CONFIG_SHELL-$SHELL} | 14380 SHELL=\${CONFIG_SHELL-$SHELL} |
26965 _ACEOF | 14381 export SHELL |
26966 | 14382 _ASEOF |
26967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 14383 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
26968 ## --------------------- ## | 14384 ## -------------------- ## |
26969 ## M4sh Initialization. ## | 14385 ## M4sh Initialization. ## |
26970 ## --------------------- ## | 14386 ## -------------------- ## |
26971 | 14387 |
26972 # Be more Bourne compatible | 14388 # Be more Bourne compatible |
26973 DUALCASE=1; export DUALCASE # for MKS sh | 14389 DUALCASE=1; export DUALCASE # for MKS sh |
26974 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 14390 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
26975 emulate sh | 14391 emulate sh |
26976 NULLCMD=: | 14392 NULLCMD=: |
26977 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 14393 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
26978 # is contrary to our usage. Disable this feature. | 14394 # is contrary to our usage. Disable this feature. |
26979 alias -g '${1+"$@"}'='"$@"' | 14395 alias -g '${1+"$@"}'='"$@"' |
26980 setopt NO_GLOB_SUBST | 14396 setopt NO_GLOB_SUBST |
26981 else | 14397 else |
26982 case `(set -o) 2>/dev/null` in | 14398 case `(set -o) 2>/dev/null` in #( |
26983 *posix*) set -o posix ;; | 14399 *posix*) : |
14400 set -o posix ;; #( | |
14401 *) : | |
14402 ;; | |
26984 esac | 14403 esac |
26985 | 14404 fi |
26986 fi | 14405 |
26987 | |
26988 | |
26989 | |
26990 | |
26991 # PATH needs CR | |
26992 # Avoid depending upon Character Ranges. | |
26993 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
26994 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
26995 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
26996 as_cr_digits='0123456789' | |
26997 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
26998 | 14406 |
26999 as_nl=' | 14407 as_nl=' |
27000 ' | 14408 ' |
27001 export as_nl | 14409 export as_nl |
27002 # Printing a long string crashes Solaris 7 /usr/bin/printf. | 14410 # Printing a long string crashes Solaris 7 /usr/bin/printf. |
27003 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 14411 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
27004 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 14412 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
27005 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 14413 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
27006 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 14414 # Prefer a ksh shell builtin over an external printf program on Solaris, |
14415 # but without wasting forks for bash or zsh. | |
14416 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14417 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14418 as_echo='print -r --' | |
14419 as_echo_n='print -rn --' | |
14420 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
27007 as_echo='printf %s\n' | 14421 as_echo='printf %s\n' |
27008 as_echo_n='printf %s' | 14422 as_echo_n='printf %s' |
27009 else | 14423 else |
27010 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 14424 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
27011 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 14425 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
27012 as_echo_n='/usr/ucb/echo -n' | 14426 as_echo_n='/usr/ucb/echo -n' |
27013 else | 14427 else |
27014 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 14428 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
27015 as_echo_n_body='eval | 14429 as_echo_n_body='eval |
27016 arg=$1; | 14430 arg=$1; |
27017 case $arg in | 14431 case $arg in #( |
27018 *"$as_nl"*) | 14432 *"$as_nl"*) |
27019 expr "X$arg" : "X\\(.*\\)$as_nl"; | 14433 expr "X$arg" : "X\\(.*\\)$as_nl"; |
27020 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 14434 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
27021 esac; | 14435 esac; |
27022 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 14436 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
27035 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 14449 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
27036 PATH_SEPARATOR=';' | 14450 PATH_SEPARATOR=';' |
27037 } | 14451 } |
27038 fi | 14452 fi |
27039 | 14453 |
27040 # Support unset when possible. | |
27041 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
27042 as_unset=unset | |
27043 else | |
27044 as_unset=false | |
27045 fi | |
27046 | |
27047 | 14454 |
27048 # IFS | 14455 # IFS |
27049 # We need space, tab and new line, in precisely that order. Quoting is | 14456 # We need space, tab and new line, in precisely that order. Quoting is |
27050 # there to prevent editors from complaining about space-tab. | 14457 # there to prevent editors from complaining about space-tab. |
27051 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 14458 # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
27052 # splitting by setting IFS to empty value.) | 14459 # splitting by setting IFS to empty value.) |
27053 IFS=" "" $as_nl" | 14460 IFS=" "" $as_nl" |
27054 | 14461 |
27055 # Find who we are. Look in the path if we contain no directory separator. | 14462 # Find who we are. Look in the path if we contain no directory separator. |
27056 case $0 in | 14463 case $0 in #(( |
27057 *[\\/]* ) as_myself=$0 ;; | 14464 *[\\/]* ) as_myself=$0 ;; |
27058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 14465 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27059 for as_dir in $PATH | 14466 for as_dir in $PATH |
27060 do | 14467 do |
27061 IFS=$as_save_IFS | 14468 IFS=$as_save_IFS |
27062 test -z "$as_dir" && as_dir=. | 14469 test -z "$as_dir" && as_dir=. |
27063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 14470 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
27064 done | 14471 done |
27065 IFS=$as_save_IFS | 14472 IFS=$as_save_IFS |
27066 | 14473 |
27067 ;; | 14474 ;; |
27068 esac | 14475 esac |
27069 # We did not find ourselves, most probably we were run as `sh COMMAND' | 14476 # We did not find ourselves, most probably we were run as `sh COMMAND' |
27071 if test "x$as_myself" = x; then | 14478 if test "x$as_myself" = x; then |
27072 as_myself=$0 | 14479 as_myself=$0 |
27073 fi | 14480 fi |
27074 if test ! -f "$as_myself"; then | 14481 if test ! -f "$as_myself"; then |
27075 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 14482 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
27076 { (exit 1); exit 1; } | 14483 exit 1 |
27077 fi | 14484 fi |
27078 | 14485 |
27079 # Work around bugs in pre-3.0 UWIN ksh. | 14486 # Unset variables that we do not need and which cause bugs (e.g. in |
27080 for as_var in ENV MAIL MAILPATH | 14487 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
27081 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 14488 # suppresses any "Segmentation fault" message there. '((' could |
14489 # trigger a bug in pdksh 5.2.14. | |
14490 for as_var in BASH_ENV ENV MAIL MAILPATH | |
14491 do eval test x\${$as_var+set} = xset \ | |
14492 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
27082 done | 14493 done |
27083 PS1='$ ' | 14494 PS1='$ ' |
27084 PS2='> ' | 14495 PS2='> ' |
27085 PS4='+ ' | 14496 PS4='+ ' |
27086 | 14497 |
27088 LC_ALL=C | 14499 LC_ALL=C |
27089 export LC_ALL | 14500 export LC_ALL |
27090 LANGUAGE=C | 14501 LANGUAGE=C |
27091 export LANGUAGE | 14502 export LANGUAGE |
27092 | 14503 |
27093 # Required to use basename. | 14504 # CDPATH. |
14505 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14506 | |
14507 | |
14508 # as_fn_error ERROR [LINENO LOG_FD] | |
14509 # --------------------------------- | |
14510 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14511 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14512 # script with status $?, using 1 if that was 0. | |
14513 as_fn_error () | |
14514 { | |
14515 as_status=$?; test $as_status -eq 0 && as_status=1 | |
14516 if test "$3"; then | |
14517 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14518 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
14519 fi | |
14520 $as_echo "$as_me: error: $1" >&2 | |
14521 as_fn_exit $as_status | |
14522 } # as_fn_error | |
14523 | |
14524 | |
14525 # as_fn_set_status STATUS | |
14526 # ----------------------- | |
14527 # Set $? to STATUS, without forking. | |
14528 as_fn_set_status () | |
14529 { | |
14530 return $1 | |
14531 } # as_fn_set_status | |
14532 | |
14533 # as_fn_exit STATUS | |
14534 # ----------------- | |
14535 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14536 as_fn_exit () | |
14537 { | |
14538 set +e | |
14539 as_fn_set_status $1 | |
14540 exit $1 | |
14541 } # as_fn_exit | |
14542 | |
14543 # as_fn_unset VAR | |
14544 # --------------- | |
14545 # Portably unset VAR. | |
14546 as_fn_unset () | |
14547 { | |
14548 { eval $1=; unset $1;} | |
14549 } | |
14550 as_unset=as_fn_unset | |
14551 # as_fn_append VAR VALUE | |
14552 # ---------------------- | |
14553 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14554 # advantage of any shell optimizations that allow amortized linear growth over | |
14555 # repeated appends, instead of the typical quadratic growth present in naive | |
14556 # implementations. | |
14557 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14558 eval 'as_fn_append () | |
14559 { | |
14560 eval $1+=\$2 | |
14561 }' | |
14562 else | |
14563 as_fn_append () | |
14564 { | |
14565 eval $1=\$$1\$2 | |
14566 } | |
14567 fi # as_fn_append | |
14568 | |
14569 # as_fn_arith ARG... | |
14570 # ------------------ | |
14571 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14572 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14573 # must be portable across $(()) and expr. | |
14574 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14575 eval 'as_fn_arith () | |
14576 { | |
14577 as_val=$(( $* )) | |
14578 }' | |
14579 else | |
14580 as_fn_arith () | |
14581 { | |
14582 as_val=`expr "$@" || test $? -eq 1` | |
14583 } | |
14584 fi # as_fn_arith | |
14585 | |
14586 | |
27094 if expr a : '\(a\)' >/dev/null 2>&1 && | 14587 if expr a : '\(a\)' >/dev/null 2>&1 && |
27095 test "X`expr 00001 : '.*\(...\)'`" = X001; then | 14588 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
27096 as_expr=expr | 14589 as_expr=expr |
27097 else | 14590 else |
27098 as_expr=false | 14591 as_expr=false |
27102 as_basename=basename | 14595 as_basename=basename |
27103 else | 14596 else |
27104 as_basename=false | 14597 as_basename=false |
27105 fi | 14598 fi |
27106 | 14599 |
27107 | 14600 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
27108 # Name of the executable. | 14601 as_dirname=dirname |
14602 else | |
14603 as_dirname=false | |
14604 fi | |
14605 | |
27109 as_me=`$as_basename -- "$0" || | 14606 as_me=`$as_basename -- "$0" || |
27110 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 14607 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
27111 X"$0" : 'X\(//\)$' \| \ | 14608 X"$0" : 'X\(//\)$' \| \ |
27112 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 14609 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
27113 $as_echo X/"$0" | | 14610 $as_echo X/"$0" | |
27123 s//\1/ | 14620 s//\1/ |
27124 q | 14621 q |
27125 } | 14622 } |
27126 s/.*/./; q'` | 14623 s/.*/./; q'` |
27127 | 14624 |
27128 # CDPATH. | 14625 # Avoid depending upon Character Ranges. |
27129 $as_unset CDPATH | 14626 as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
27130 | 14627 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
27131 | 14628 as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
27132 | 14629 as_cr_digits='0123456789' |
27133 as_lineno_1=$LINENO | 14630 as_cr_alnum=$as_cr_Letters$as_cr_digits |
27134 as_lineno_2=$LINENO | |
27135 test "x$as_lineno_1" != "x$as_lineno_2" && | |
27136 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
27137 | |
27138 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
27139 # uniformly replaced by the line number. The first 'sed' inserts a | |
27140 # line-number line after each line using $LINENO; the second 'sed' | |
27141 # does the real work. The second script uses 'N' to pair each | |
27142 # line-number line with the line containing $LINENO, and appends | |
27143 # trailing '-' during substitution so that $LINENO is not a special | |
27144 # case at line end. | |
27145 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
27146 # scripts with optimization help from Paolo Bonzini. Blame Lee | |
27147 # E. McMahon (1931-1989) for sed's syntax. :-) | |
27148 sed -n ' | |
27149 p | |
27150 /[$]LINENO/= | |
27151 ' <$as_myself | | |
27152 sed ' | |
27153 s/[$]LINENO.*/&-/ | |
27154 t lineno | |
27155 b | |
27156 :lineno | |
27157 N | |
27158 :loop | |
27159 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
27160 t loop | |
27161 s/-\n.*// | |
27162 ' >$as_me.lineno && | |
27163 chmod +x "$as_me.lineno" || | |
27164 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
27165 { (exit 1); exit 1; }; } | |
27166 | |
27167 # Don't try to exec as it changes $[0], causing all sort of problems | |
27168 # (the dirname of $[0] is not the place where we might find the | |
27169 # original and so on. Autoconf is especially sensitive to this). | |
27170 . "./$as_me.lineno" | |
27171 # Exit status is that of the last command. | |
27172 exit | |
27173 } | |
27174 | |
27175 | |
27176 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
27177 as_dirname=dirname | |
27178 else | |
27179 as_dirname=false | |
27180 fi | |
27181 | 14631 |
27182 ECHO_C= ECHO_N= ECHO_T= | 14632 ECHO_C= ECHO_N= ECHO_T= |
27183 case `echo -n x` in | 14633 case `echo -n x` in #((((( |
27184 -n*) | 14634 -n*) |
27185 case `echo 'x\c'` in | 14635 case `echo 'xy\c'` in |
27186 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | 14636 *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
27187 *) ECHO_C='\c';; | 14637 xy) ECHO_C='\c';; |
14638 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14639 ECHO_T=' ';; | |
27188 esac;; | 14640 esac;; |
27189 *) | 14641 *) |
27190 ECHO_N='-n';; | 14642 ECHO_N='-n';; |
27191 esac | 14643 esac |
27192 if expr a : '\(a\)' >/dev/null 2>&1 && | |
27193 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
27194 as_expr=expr | |
27195 else | |
27196 as_expr=false | |
27197 fi | |
27198 | 14644 |
27199 rm -f conf$$ conf$$.exe conf$$.file | 14645 rm -f conf$$ conf$$.exe conf$$.file |
27200 if test -d conf$$.dir; then | 14646 if test -d conf$$.dir; then |
27201 rm -f conf$$.dir/conf$$.file | 14647 rm -f conf$$.dir/conf$$.file |
27202 else | 14648 else |
27221 as_ln_s='cp -p' | 14667 as_ln_s='cp -p' |
27222 fi | 14668 fi |
27223 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 14669 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
27224 rmdir conf$$.dir 2>/dev/null | 14670 rmdir conf$$.dir 2>/dev/null |
27225 | 14671 |
14672 | |
14673 # as_fn_mkdir_p | |
14674 # ------------- | |
14675 # Create "$as_dir" as a directory, including parents if necessary. | |
14676 as_fn_mkdir_p () | |
14677 { | |
14678 | |
14679 case $as_dir in #( | |
14680 -*) as_dir=./$as_dir;; | |
14681 esac | |
14682 test -d "$as_dir" || eval $as_mkdir_p || { | |
14683 as_dirs= | |
14684 while :; do | |
14685 case $as_dir in #( | |
14686 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14687 *) as_qdir=$as_dir;; | |
14688 esac | |
14689 as_dirs="'$as_qdir' $as_dirs" | |
14690 as_dir=`$as_dirname -- "$as_dir" || | |
14691 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14692 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14693 X"$as_dir" : 'X\(//\)$' \| \ | |
14694 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14695 $as_echo X"$as_dir" | | |
14696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14697 s//\1/ | |
14698 q | |
14699 } | |
14700 /^X\(\/\/\)[^/].*/{ | |
14701 s//\1/ | |
14702 q | |
14703 } | |
14704 /^X\(\/\/\)$/{ | |
14705 s//\1/ | |
14706 q | |
14707 } | |
14708 /^X\(\/\).*/{ | |
14709 s//\1/ | |
14710 q | |
14711 } | |
14712 s/.*/./; q'` | |
14713 test -d "$as_dir" && break | |
14714 done | |
14715 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14716 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14717 | |
14718 | |
14719 } # as_fn_mkdir_p | |
27226 if mkdir -p . 2>/dev/null; then | 14720 if mkdir -p . 2>/dev/null; then |
27227 as_mkdir_p=: | 14721 as_mkdir_p='mkdir -p "$as_dir"' |
27228 else | 14722 else |
27229 test -d ./-p && rmdir ./-p | 14723 test -d ./-p && rmdir ./-p |
27230 as_mkdir_p=false | 14724 as_mkdir_p=false |
27231 fi | 14725 fi |
27232 | 14726 |
27241 as_test_x=' | 14735 as_test_x=' |
27242 eval sh -c '\'' | 14736 eval sh -c '\'' |
27243 if test -d "$1"; then | 14737 if test -d "$1"; then |
27244 test -d "$1/."; | 14738 test -d "$1/."; |
27245 else | 14739 else |
27246 case $1 in | 14740 case $1 in #( |
27247 -*)set "./$1";; | 14741 -*)set "./$1";; |
27248 esac; | 14742 esac; |
27249 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | 14743 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
27250 ???[sx]*):;;*)false;;esac;fi | 14744 ???[sx]*):;;*)false;;esac;fi |
27251 '\'' sh | 14745 '\'' sh |
27252 ' | 14746 ' |
27253 fi | 14747 fi |
27254 as_executable_p=$as_test_x | 14748 as_executable_p=$as_test_x |
27259 # Sed expression to map a string onto a valid variable name. | 14753 # Sed expression to map a string onto a valid variable name. |
27260 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 14754 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
27261 | 14755 |
27262 | 14756 |
27263 exec 6>&1 | 14757 exec 6>&1 |
27264 | 14758 ## ----------------------------------- ## |
27265 # Save the log message, to keep $[0] and so on meaningful, and to | 14759 ## Main body of $CONFIG_STATUS script. ## |
14760 ## ----------------------------------- ## | |
14761 _ASEOF | |
14762 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14763 | |
14764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14765 # Save the log message, to keep $0 and so on meaningful, and to | |
27266 # report actual input values of CONFIG_FILES etc. instead of their | 14766 # report actual input values of CONFIG_FILES etc. instead of their |
27267 # values after options handling. | 14767 # values after options handling. |
27268 ac_log=" | 14768 ac_log=" |
27269 This file was extended by emacs $as_me 24.0.50, which was | 14769 This file was extended by emacs $as_me 24.0.50, which was |
27270 generated by GNU Autoconf 2.62. Invocation command line was | 14770 generated by GNU Autoconf 2.65. Invocation command line was |
27271 | 14771 |
27272 CONFIG_FILES = $CONFIG_FILES | 14772 CONFIG_FILES = $CONFIG_FILES |
27273 CONFIG_HEADERS = $CONFIG_HEADERS | 14773 CONFIG_HEADERS = $CONFIG_HEADERS |
27274 CONFIG_LINKS = $CONFIG_LINKS | 14774 CONFIG_LINKS = $CONFIG_LINKS |
27275 CONFIG_COMMANDS = $CONFIG_COMMANDS | 14775 CONFIG_COMMANDS = $CONFIG_COMMANDS |
27278 on `(hostname || uname -n) 2>/dev/null | sed 1q` | 14778 on `(hostname || uname -n) 2>/dev/null | sed 1q` |
27279 " | 14779 " |
27280 | 14780 |
27281 _ACEOF | 14781 _ACEOF |
27282 | 14782 |
14783 case $ac_config_files in *" | |
14784 "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14785 esac | |
14786 | |
14787 case $ac_config_headers in *" | |
14788 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
14789 esac | |
14790 | |
14791 | |
27283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 14792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
27284 # Files that config.status was made for. | 14793 # Files that config.status was made for. |
27285 config_files="$ac_config_files" | 14794 config_files="$ac_config_files" |
27286 config_headers="$ac_config_headers" | 14795 config_headers="$ac_config_headers" |
27287 config_commands="$ac_config_commands" | 14796 config_commands="$ac_config_commands" |
27288 | 14797 |
27289 _ACEOF | 14798 _ACEOF |
27290 | 14799 |
27291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 14800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27292 ac_cs_usage="\ | 14801 ac_cs_usage="\ |
27293 \`$as_me' instantiates files from templates according to the | 14802 \`$as_me' instantiates files and other configuration actions |
27294 current configuration. | 14803 from templates according to the current configuration. Unless the files |
27295 | 14804 and actions are specified as TAGs, all are instantiated by default. |
27296 Usage: $0 [OPTIONS] [FILE]... | 14805 |
14806 Usage: $0 [OPTION]... [TAG]... | |
27297 | 14807 |
27298 -h, --help print this help, then exit | 14808 -h, --help print this help, then exit |
27299 -V, --version print version number and configuration settings, then exit | 14809 -V, --version print version number and configuration settings, then exit |
27300 -q, --quiet do not print progress messages | 14810 --config print configuration, then exit |
14811 -q, --quiet, --silent | |
14812 do not print progress messages | |
27301 -d, --debug don't remove temporary files | 14813 -d, --debug don't remove temporary files |
27302 --recheck update $as_me by reconfiguring in the same conditions | 14814 --recheck update $as_me by reconfiguring in the same conditions |
27303 --file=FILE[:TEMPLATE] | 14815 --file=FILE[:TEMPLATE] |
27304 instantiate the configuration file FILE | 14816 instantiate the configuration file FILE |
27305 --header=FILE[:TEMPLATE] | 14817 --header=FILE[:TEMPLATE] |
27306 instantiate the configuration header FILE | 14818 instantiate the configuration header FILE |
27307 | 14819 |
27308 Configuration files: | 14820 Configuration files: |
27309 $config_files | 14821 $config_files |
27310 | 14822 |
27312 $config_headers | 14824 $config_headers |
27313 | 14825 |
27314 Configuration commands: | 14826 Configuration commands: |
27315 $config_commands | 14827 $config_commands |
27316 | 14828 |
27317 Report bugs to <bug-autoconf@gnu.org>." | 14829 Report bugs to the package provider." |
27318 | 14830 |
27319 _ACEOF | 14831 _ACEOF |
27320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 14832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14833 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
27321 ac_cs_version="\\ | 14834 ac_cs_version="\\ |
27322 emacs config.status 24.0.50 | 14835 emacs config.status 24.0.50 |
27323 configured by $0, generated by GNU Autoconf 2.62, | 14836 configured by $0, generated by GNU Autoconf 2.65, |
27324 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | 14837 with options \\"\$ac_cs_config\\" |
27325 | 14838 |
27326 Copyright (C) 2008 Free Software Foundation, Inc. | 14839 Copyright (C) 2009 Free Software Foundation, Inc. |
27327 This config.status script is free software; the Free Software Foundation | 14840 This config.status script is free software; the Free Software Foundation |
27328 gives unlimited permission to copy, distribute and modify it." | 14841 gives unlimited permission to copy, distribute and modify it." |
27329 | 14842 |
27330 ac_pwd='$ac_pwd' | 14843 ac_pwd='$ac_pwd' |
27331 srcdir='$srcdir' | 14844 srcdir='$srcdir' |
27355 # Handling of the options. | 14868 # Handling of the options. |
27356 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 14869 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
27357 ac_cs_recheck=: ;; | 14870 ac_cs_recheck=: ;; |
27358 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 14871 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
27359 $as_echo "$ac_cs_version"; exit ;; | 14872 $as_echo "$ac_cs_version"; exit ;; |
14873 --config | --confi | --conf | --con | --co | --c ) | |
14874 $as_echo "$ac_cs_config"; exit ;; | |
27360 --debug | --debu | --deb | --de | --d | -d ) | 14875 --debug | --debu | --deb | --de | --d | -d ) |
27361 debug=: ;; | 14876 debug=: ;; |
27362 --file | --fil | --fi | --f ) | 14877 --file | --fil | --fi | --f ) |
27363 $ac_shift | 14878 $ac_shift |
27364 case $ac_optarg in | 14879 case $ac_optarg in |
27365 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 14880 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
27366 esac | 14881 esac |
27367 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | 14882 as_fn_append CONFIG_FILES " '$ac_optarg'" |
27368 ac_need_defaults=false;; | 14883 ac_need_defaults=false;; |
27369 --header | --heade | --head | --hea ) | 14884 --header | --heade | --head | --hea ) |
27370 $ac_shift | 14885 $ac_shift |
27371 case $ac_optarg in | 14886 case $ac_optarg in |
27372 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 14887 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
27373 esac | 14888 esac |
27374 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | 14889 as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
27375 ac_need_defaults=false;; | 14890 ac_need_defaults=false;; |
27376 --he | --h) | 14891 --he | --h) |
27377 # Conflict between --help and --header | 14892 # Conflict between --help and --header |
27378 { $as_echo "$as_me: error: ambiguous option: $1 | 14893 as_fn_error "ambiguous option: \`$1' |
27379 Try \`$0 --help' for more information." >&2 | 14894 Try \`$0 --help' for more information.";; |
27380 { (exit 1); exit 1; }; };; | |
27381 --help | --hel | -h ) | 14895 --help | --hel | -h ) |
27382 $as_echo "$ac_cs_usage"; exit ;; | 14896 $as_echo "$ac_cs_usage"; exit ;; |
27383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 14897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
27384 | -silent | --silent | --silen | --sile | --sil | --si | --s) | 14898 | -silent | --silent | --silen | --sile | --sil | --si | --s) |
27385 ac_cs_silent=: ;; | 14899 ac_cs_silent=: ;; |
27386 | 14900 |
27387 # This is an error. | 14901 # This is an error. |
27388 -*) { $as_echo "$as_me: error: unrecognized option: $1 | 14902 -*) as_fn_error "unrecognized option: \`$1' |
27389 Try \`$0 --help' for more information." >&2 | 14903 Try \`$0 --help' for more information." ;; |
27390 { (exit 1); exit 1; }; } ;; | 14904 |
27391 | 14905 *) as_fn_append ac_config_targets " $1" |
27392 *) ac_config_targets="$ac_config_targets $1" | |
27393 ac_need_defaults=false ;; | 14906 ac_need_defaults=false ;; |
27394 | 14907 |
27395 esac | 14908 esac |
27396 shift | 14909 shift |
27397 done | 14910 done |
27452 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | 14965 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; |
27453 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | 14966 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; |
27454 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; | 14967 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
27455 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | 14968 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
27456 | 14969 |
27457 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | 14970 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
27458 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
27459 { (exit 1); exit 1; }; };; | |
27460 esac | 14971 esac |
27461 done | 14972 done |
27462 | 14973 |
27463 | 14974 |
27464 # If the user did not use the arguments to specify the items to instantiate, | 14975 # If the user did not use the arguments to specify the items to instantiate, |
27481 { | 14992 { |
27482 tmp= | 14993 tmp= |
27483 trap 'exit_status=$? | 14994 trap 'exit_status=$? |
27484 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | 14995 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
27485 ' 0 | 14996 ' 0 |
27486 trap '{ (exit 1); exit 1; }' 1 2 13 15 | 14997 trap 'as_fn_exit 1' 1 2 13 15 |
27487 } | 14998 } |
27488 # Create a (secure) tmp directory for tmp files. | 14999 # Create a (secure) tmp directory for tmp files. |
27489 | 15000 |
27490 { | 15001 { |
27491 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 15002 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
27492 test -n "$tmp" && test -d "$tmp" | 15003 test -n "$tmp" && test -d "$tmp" |
27493 } || | 15004 } || |
27494 { | 15005 { |
27495 tmp=./conf$$-$RANDOM | 15006 tmp=./conf$$-$RANDOM |
27496 (umask 077 && mkdir "$tmp") | 15007 (umask 077 && mkdir "$tmp") |
27497 } || | 15008 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
27498 { | |
27499 $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
27500 { (exit 1); exit 1; } | |
27501 } | |
27502 | 15009 |
27503 # Set up the scripts for CONFIG_FILES section. | 15010 # Set up the scripts for CONFIG_FILES section. |
27504 # No need to generate them if there are no CONFIG_FILES. | 15011 # No need to generate them if there are no CONFIG_FILES. |
27505 # This happens for instance with `./config.status config.h'. | 15012 # This happens for instance with `./config.status config.h'. |
27506 if test -n "$CONFIG_FILES"; then | 15013 if test -n "$CONFIG_FILES"; then |
27521 print "cat " F[key] " &&" | 15028 print "cat " F[key] " &&" |
27522 '$ac_cs_awk_pipe_init | 15029 '$ac_cs_awk_pipe_init |
27523 # The final `:' finishes the AND list. | 15030 # The final `:' finishes the AND list. |
27524 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | 15031 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
27525 fi | 15032 fi |
27526 ac_cr=' | 15033 ac_cr=`echo X | tr X '\015'` |
27527 ' | 15034 # On cygwin, bash can eat \r inside `` if the user requested igncr. |
15035 # But we know of no other shell where ac_cr would be empty at this | |
15036 # point, so we can use a bashism as a fallback. | |
15037 if test "x$ac_cr" = x; then | |
15038 eval ac_cr=\$\'\\r\' | |
15039 fi | |
27528 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 15040 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
27529 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 15041 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
27530 ac_cs_awk_cr='\\r' | 15042 ac_cs_awk_cr='\r' |
27531 else | 15043 else |
27532 ac_cs_awk_cr=$ac_cr | 15044 ac_cs_awk_cr=$ac_cr |
27533 fi | 15045 fi |
27534 | 15046 |
27535 echo 'BEGIN {' >"$tmp/subs1.awk" && | 15047 echo 'BEGIN {' >"$tmp/subs1.awk" && |
27542 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | 15054 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
27543 echo "_ACAWK" && | 15055 echo "_ACAWK" && |
27544 echo "_ACEOF" | 15056 echo "_ACEOF" |
27545 } >conf$$files.sh && | 15057 } >conf$$files.sh && |
27546 . ./conf$$files.sh || | 15058 . ./conf$$files.sh || |
27547 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 15059 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
27548 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
27549 { (exit 1); exit 1; }; } | |
27550 rm -f conf$$files.sh | 15060 rm -f conf$$files.sh |
27551 | 15061 |
27552 { | 15062 { |
27553 echo "cat >conf$$subs.awk <<_ACEOF" && | 15063 echo "cat >conf$$subs.awk <<_ACEOF" && |
27554 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 15064 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
27555 echo "_ACEOF" | 15065 echo "_ACEOF" |
27556 } >conf$$subs.sh || | 15066 } >conf$$subs.sh || |
27557 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 15067 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
27558 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
27559 { (exit 1); exit 1; }; } | |
27560 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | 15068 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
27561 ac_delim='%!_!# ' | 15069 ac_delim='%!_!# ' |
27562 for ac_last_try in false false false false false :; do | 15070 for ac_last_try in false false false false false :; do |
27563 . ./conf$$subs.sh || | 15071 . ./conf$$subs.sh || |
27564 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 15072 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
27565 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | 15073 |
27566 { (exit 1); exit 1; }; } | 15074 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
27567 | 15075 if test $ac_delim_n = $ac_delim_num; then |
27568 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then | |
27569 break | 15076 break |
27570 elif $ac_last_try; then | 15077 elif $ac_last_try; then |
27571 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 15078 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
27572 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
27573 { (exit 1); exit 1; }; } | |
27574 else | 15079 else |
27575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 15080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
27576 fi | 15081 fi |
27577 done | 15082 done |
27578 rm -f conf$$subs.sh | 15083 rm -f conf$$subs.sh |
27590 t repl | 15095 t repl |
27591 s/'"$ac_delim"'$// | 15096 s/'"$ac_delim"'$// |
27592 t delim | 15097 t delim |
27593 :nl | 15098 :nl |
27594 h | 15099 h |
27595 s/\(.\{148\}\).*/\1/ | 15100 s/\(.\{148\}\)..*/\1/ |
27596 t more1 | 15101 t more1 |
27597 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 15102 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
27598 p | 15103 p |
27599 n | 15104 n |
27600 b repl | 15105 b repl |
27604 g | 15109 g |
27605 s/.\{148\}// | 15110 s/.\{148\}// |
27606 t nl | 15111 t nl |
27607 :delim | 15112 :delim |
27608 h | 15113 h |
27609 s/\(.\{148\}\).*/\1/ | 15114 s/\(.\{148\}\)..*/\1/ |
27610 t more2 | 15115 t more2 |
27611 s/["\\]/\\&/g; s/^/"/; s/$/"/ | 15116 s/["\\]/\\&/g; s/^/"/; s/$/"/ |
27612 p | 15117 p |
27613 b | 15118 b |
27614 :more2 | 15119 :more2 |
27663 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 15168 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
27664 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 15169 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
27665 else | 15170 else |
27666 cat | 15171 cat |
27667 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | 15172 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
27668 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | 15173 || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
27669 $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
27670 { (exit 1); exit 1; }; } | |
27671 _ACEOF | 15174 _ACEOF |
27672 | 15175 |
27673 # VPATH may cause trouble with some makes, so we remove $(srcdir), | 15176 # VPATH may cause trouble with some makes, so we remove $(srcdir), |
27674 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 15177 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
27675 # trailing colons and then remove the whole line if VPATH becomes empty | 15178 # trailing colons and then remove the whole line if VPATH becomes empty |
27706 for ac_last_try in false false :; do | 15209 for ac_last_try in false false :; do |
27707 ac_t=`sed -n "/$ac_delim/p" confdefs.h` | 15210 ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
27708 if test -z "$ac_t"; then | 15211 if test -z "$ac_t"; then |
27709 break | 15212 break |
27710 elif $ac_last_try; then | 15213 elif $ac_last_try; then |
27711 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | 15214 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
27712 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
27713 { (exit 1); exit 1; }; } | |
27714 else | 15215 else |
27715 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 15216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
27716 fi | 15217 fi |
27717 done | 15218 done |
27718 | 15219 |
27774 defundef = substr(arg[1], 2) | 15275 defundef = substr(arg[1], 2) |
27775 mac1 = arg[2] | 15276 mac1 = arg[2] |
27776 } | 15277 } |
27777 split(mac1, mac2, "(") #) | 15278 split(mac1, mac2, "(") #) |
27778 macro = mac2[1] | 15279 macro = mac2[1] |
15280 prefix = substr(line, 1, index(line, defundef) - 1) | |
27779 if (D_is_set[macro]) { | 15281 if (D_is_set[macro]) { |
27780 # Preserve the white space surrounding the "#". | 15282 # Preserve the white space surrounding the "#". |
27781 prefix = substr(line, 1, index(line, defundef) - 1) | |
27782 print prefix "define", macro P[macro] D[macro] | 15283 print prefix "define", macro P[macro] D[macro] |
27783 next | 15284 next |
27784 } else { | 15285 } else { |
27785 # Replace #undef with comments. This is necessary, for example, | 15286 # Replace #undef with comments. This is necessary, for example, |
27786 # in the case of _POSIX_SOURCE, which is predefined and required | 15287 # in the case of _POSIX_SOURCE, which is predefined and required |
27787 # on some systems where configure will not decide to define it. | 15288 # on some systems where configure will not decide to define it. |
27788 if (defundef == "undef") { | 15289 if (defundef == "undef") { |
27789 print "/*", line, "*/" | 15290 print "/*", prefix defundef, macro, "*/" |
27790 next | 15291 next |
27791 } | 15292 } |
27792 } | 15293 } |
27793 } | 15294 } |
27794 { print } | 15295 { print } |
27795 _ACAWK | 15296 _ACAWK |
27796 _ACEOF | 15297 _ACEOF |
27797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 15298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27798 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | 15299 as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
27799 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
27800 { (exit 1); exit 1; }; } | |
27801 fi # test -n "$CONFIG_HEADERS" | 15300 fi # test -n "$CONFIG_HEADERS" |
27802 | 15301 |
27803 | 15302 |
27804 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | 15303 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
27805 shift | 15304 shift |
27808 case $ac_tag in | 15307 case $ac_tag in |
27809 :[FHLC]) ac_mode=$ac_tag; continue;; | 15308 :[FHLC]) ac_mode=$ac_tag; continue;; |
27810 esac | 15309 esac |
27811 case $ac_mode$ac_tag in | 15310 case $ac_mode$ac_tag in |
27812 :[FHL]*:*);; | 15311 :[FHL]*:*);; |
27813 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | 15312 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
27814 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
27815 { (exit 1); exit 1; }; };; | |
27816 :[FH]-) ac_tag=-:-;; | 15313 :[FH]-) ac_tag=-:-;; |
27817 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 15314 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
27818 esac | 15315 esac |
27819 ac_save_IFS=$IFS | 15316 ac_save_IFS=$IFS |
27820 IFS=: | 15317 IFS=: |
27838 test -f "$ac_f" || | 15335 test -f "$ac_f" || |
27839 case $ac_f in | 15336 case $ac_f in |
27840 [\\/$]*) false;; | 15337 [\\/$]*) false;; |
27841 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 15338 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
27842 esac || | 15339 esac || |
27843 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | 15340 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
27844 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
27845 { (exit 1); exit 1; }; };; | |
27846 esac | 15341 esac |
27847 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 15342 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
27848 ac_file_inputs="$ac_file_inputs '$ac_f'" | 15343 as_fn_append ac_file_inputs " '$ac_f'" |
27849 done | 15344 done |
27850 | 15345 |
27851 # Let's still pretend it is `configure' which instantiates (i.e., don't | 15346 # Let's still pretend it is `configure' which instantiates (i.e., don't |
27852 # use $as_me), people would be surprised to read: | 15347 # use $as_me), people would be surprised to read: |
27853 # /* config.h. Generated by config.status. */ | 15348 # /* config.h. Generated by config.status. */ |
27854 configure_input='Generated from '` | 15349 configure_input='Generated from '` |
27855 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 15350 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
27856 `' by configure.' | 15351 `' by configure.' |
27857 if test x"$ac_file" != x-; then | 15352 if test x"$ac_file" != x-; then |
27858 configure_input="$ac_file. $configure_input" | 15353 configure_input="$ac_file. $configure_input" |
27859 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | 15354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
27860 $as_echo "$as_me: creating $ac_file" >&6;} | 15355 $as_echo "$as_me: creating $ac_file" >&6;} |
27861 fi | 15356 fi |
27862 # Neutralize special characters interpreted by sed in replacement strings. | 15357 # Neutralize special characters interpreted by sed in replacement strings. |
27863 case $configure_input in #( | 15358 case $configure_input in #( |
27864 *\&* | *\|* | *\\* ) | 15359 *\&* | *\|* | *\\* ) |
27867 *) ac_sed_conf_input=$configure_input;; | 15362 *) ac_sed_conf_input=$configure_input;; |
27868 esac | 15363 esac |
27869 | 15364 |
27870 case $ac_tag in | 15365 case $ac_tag in |
27871 *:-:* | *:-) cat >"$tmp/stdin" \ | 15366 *:-:* | *:-) cat >"$tmp/stdin" \ |
27872 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | 15367 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
27873 $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
27874 { (exit 1); exit 1; }; } ;; | |
27875 esac | 15368 esac |
27876 ;; | 15369 ;; |
27877 esac | 15370 esac |
27878 | 15371 |
27879 ac_dir=`$as_dirname -- "$ac_file" || | 15372 ac_dir=`$as_dirname -- "$ac_file" || |
27897 /^X\(\/\).*/{ | 15390 /^X\(\/\).*/{ |
27898 s//\1/ | 15391 s//\1/ |
27899 q | 15392 q |
27900 } | 15393 } |
27901 s/.*/./; q'` | 15394 s/.*/./; q'` |
27902 { as_dir="$ac_dir" | 15395 as_dir="$ac_dir"; as_fn_mkdir_p |
27903 case $as_dir in #( | |
27904 -*) as_dir=./$as_dir;; | |
27905 esac | |
27906 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
27907 as_dirs= | |
27908 while :; do | |
27909 case $as_dir in #( | |
27910 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
27911 *) as_qdir=$as_dir;; | |
27912 esac | |
27913 as_dirs="'$as_qdir' $as_dirs" | |
27914 as_dir=`$as_dirname -- "$as_dir" || | |
27915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27916 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
27917 X"$as_dir" : 'X\(//\)$' \| \ | |
27918 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
27919 $as_echo X"$as_dir" | | |
27920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
27921 s//\1/ | |
27922 q | |
27923 } | |
27924 /^X\(\/\/\)[^/].*/{ | |
27925 s//\1/ | |
27926 q | |
27927 } | |
27928 /^X\(\/\/\)$/{ | |
27929 s//\1/ | |
27930 q | |
27931 } | |
27932 /^X\(\/\).*/{ | |
27933 s//\1/ | |
27934 q | |
27935 } | |
27936 s/.*/./; q'` | |
27937 test -d "$as_dir" && break | |
27938 done | |
27939 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
27940 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
27941 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
27942 { (exit 1); exit 1; }; }; } | |
27943 ac_builddir=. | 15396 ac_builddir=. |
27944 | 15397 |
27945 case "$ac_dir" in | 15398 case "$ac_dir" in |
27946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 15399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
27947 *) | 15400 *) |
27989 | 15442 |
27990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 15443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27991 # If the template does not know about datarootdir, expand it. | 15444 # If the template does not know about datarootdir, expand it. |
27992 # FIXME: This hack should be removed a few years after 2.60. | 15445 # FIXME: This hack should be removed a few years after 2.60. |
27993 ac_datarootdir_hack=; ac_datarootdir_seen= | 15446 ac_datarootdir_hack=; ac_datarootdir_seen= |
27994 | |
27995 ac_sed_dataroot=' | 15447 ac_sed_dataroot=' |
27996 /datarootdir/ { | 15448 /datarootdir/ { |
27997 p | 15449 p |
27998 q | 15450 q |
27999 } | 15451 } |
28000 /@datadir@/p | 15452 /@datadir@/p |
28001 /@docdir@/p | 15453 /@docdir@/p |
28002 /@infodir@/p | 15454 /@infodir@/p |
28003 /@localedir@/p | 15455 /@localedir@/p |
28004 /@mandir@/p | 15456 /@mandir@/p' |
28005 ' | |
28006 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 15457 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
28007 *datarootdir*) ac_datarootdir_seen=yes;; | 15458 *datarootdir*) ac_datarootdir_seen=yes;; |
28008 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 15459 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
28009 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 15460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
28010 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 15461 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
28011 _ACEOF | 15462 _ACEOF |
28012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 15463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
28013 ac_datarootdir_hack=' | 15464 ac_datarootdir_hack=' |
28014 s&@datadir@&$datadir&g | 15465 s&@datadir@&$datadir&g |
28015 s&@docdir@&$docdir&g | 15466 s&@docdir@&$docdir&g |
28016 s&@infodir@&$infodir&g | 15467 s&@infodir@&$infodir&g |
28017 s&@localedir@&$localedir&g | 15468 s&@localedir@&$localedir&g |
28018 s&@mandir@&$mandir&g | 15469 s&@mandir@&$mandir&g |
28019 s&\\\${datarootdir}&$datarootdir&g' ;; | 15470 s&\\\${datarootdir}&$datarootdir&g' ;; |
28020 esac | 15471 esac |
28021 _ACEOF | 15472 _ACEOF |
28022 | 15473 |
28023 # Neutralize VPATH when `$srcdir' = `.'. | 15474 # Neutralize VPATH when `$srcdir' = `.'. |
28024 # Shell code in configure.ac might set extrasub. | 15475 # Shell code in configure.ac might set extrasub. |
28047 if $ac_cs_awk_getline; then | 15498 if $ac_cs_awk_getline; then |
28048 $AWK -f "$tmp/subs.awk" | 15499 $AWK -f "$tmp/subs.awk" |
28049 else | 15500 else |
28050 $AWK -f "$tmp/subs.awk" | $SHELL | 15501 $AWK -f "$tmp/subs.awk" | $SHELL |
28051 fi >$tmp/out \ | 15502 fi >$tmp/out \ |
28052 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | 15503 || as_fn_error "could not create $ac_file" "$LINENO" 5 |
28053 $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
28054 { (exit 1); exit 1; }; } | |
28055 | 15504 |
28056 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 15505 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
28057 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | 15506 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
28058 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | 15507 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
28059 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 15508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
28060 which seems to be undefined. Please make sure it is defined." >&5 | 15509 which seems to be undefined. Please make sure it is defined." >&5 |
28061 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 15510 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
28062 which seems to be undefined. Please make sure it is defined." >&2;} | 15511 which seems to be undefined. Please make sure it is defined." >&2;} |
28063 | 15512 |
28064 rm -f "$tmp/stdin" | 15513 rm -f "$tmp/stdin" |
28065 case $ac_file in | 15514 case $ac_file in |
28066 -) cat "$tmp/out" && rm -f "$tmp/out";; | 15515 -) cat "$tmp/out" && rm -f "$tmp/out";; |
28067 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | 15516 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
28068 esac \ | 15517 esac \ |
28069 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | 15518 || as_fn_error "could not create $ac_file" "$LINENO" 5 |
28070 $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
28071 { (exit 1); exit 1; }; } | |
28072 ;; | 15519 ;; |
28073 :H) | 15520 :H) |
28074 # | 15521 # |
28075 # CONFIG_HEADER | 15522 # CONFIG_HEADER |
28076 # | 15523 # |
28077 if test x"$ac_file" != x-; then | 15524 if test x"$ac_file" != x-; then |
28078 { | 15525 { |
28079 $as_echo "/* $configure_input */" \ | 15526 $as_echo "/* $configure_input */" \ |
28080 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | 15527 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
28081 } >"$tmp/config.h" \ | 15528 } >"$tmp/config.h" \ |
28082 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | 15529 || as_fn_error "could not create $ac_file" "$LINENO" 5 |
28083 $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
28084 { (exit 1); exit 1; }; } | |
28085 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | 15530 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
28086 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | 15531 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
28087 $as_echo "$as_me: $ac_file is unchanged" >&6;} | 15532 $as_echo "$as_me: $ac_file is unchanged" >&6;} |
28088 else | 15533 else |
28089 rm -f "$ac_file" | 15534 rm -f "$ac_file" |
28090 mv "$tmp/config.h" "$ac_file" \ | 15535 mv "$tmp/config.h" "$ac_file" \ |
28091 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | 15536 || as_fn_error "could not create $ac_file" "$LINENO" 5 |
28092 $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
28093 { (exit 1); exit 1; }; } | |
28094 fi | 15537 fi |
28095 else | 15538 else |
28096 $as_echo "/* $configure_input */" \ | 15539 $as_echo "/* $configure_input */" \ |
28097 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | 15540 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
28098 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | 15541 || as_fn_error "could not create -" "$LINENO" 5 |
28099 $as_echo "$as_me: error: could not create -" >&2;} | |
28100 { (exit 1); exit 1; }; } | |
28101 fi | 15542 fi |
28102 ;; | 15543 ;; |
28103 | 15544 |
28104 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 | 15545 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
28105 $as_echo "$as_me: executing $ac_file commands" >&6;} | 15546 $as_echo "$as_me: executing $ac_file commands" >&6;} |
28106 ;; | 15547 ;; |
28107 esac | 15548 esac |
28108 | 15549 |
28109 | 15550 |
28127 | 15568 |
28128 esac | 15569 esac |
28129 done # for ac_tag | 15570 done # for ac_tag |
28130 | 15571 |
28131 | 15572 |
28132 { (exit 0); exit 0; } | 15573 as_fn_exit 0 |
28133 _ACEOF | 15574 _ACEOF |
28134 chmod +x $CONFIG_STATUS | |
28135 ac_clean_files=$ac_clean_files_save | 15575 ac_clean_files=$ac_clean_files_save |
28136 | 15576 |
28137 test $ac_write_fail = 0 || | 15577 test $ac_write_fail = 0 || |
28138 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | 15578 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
28139 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
28140 { (exit 1); exit 1; }; } | |
28141 | 15579 |
28142 | 15580 |
28143 # configure is writing to config.log, and then calls config.status. | 15581 # configure is writing to config.log, and then calls config.status. |
28144 # config.status does its own redirection, appending to config.log. | 15582 # config.status does its own redirection, appending to config.log. |
28145 # Unfortunately, on DOS this fails, as config.log is still kept open | 15583 # Unfortunately, on DOS this fails, as config.log is still kept open |
28156 exec 5>/dev/null | 15594 exec 5>/dev/null |
28157 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 15595 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
28158 exec 5>>config.log | 15596 exec 5>>config.log |
28159 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 15597 # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
28160 # would make configure fail if this is the last instruction. | 15598 # would make configure fail if this is the last instruction. |
28161 $ac_cs_success || { (exit 1); exit 1; } | 15599 $ac_cs_success || as_fn_exit $? |
28162 fi | 15600 fi |
28163 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 15601 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
28164 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 | 15602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
28165 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} | 15603 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
28166 fi | 15604 fi |
28167 | 15605 |
28168 | 15606 |